|
43 | 43 | },
|
44 | 44 | "files": ["README.md", "dist"],
|
45 | 45 | "scripts": {
|
46 |
| - "build": "bun --bun build.ts", |
| 46 | + "build": "bun build.ts && bun run compile", |
| 47 | + "compile": "bun build ./bin/cli.ts --compile --minify --outfile bin/git-hooks", |
| 48 | + "compile:all": "bun run compile:linux-x64 && bun run compile:linux-arm64 && bun run compile:windows-x64 && bun run compile:darwin-x64 && bun run compile:darwin-arm64", |
| 49 | + "compile:linux-x64": "bun build ./bin/cli.ts --compile --minify --target=bun-linux-x64 --outfile bin/git-hooks-linux-x64", |
| 50 | + "compile:linux-arm64": "bun build ./bin/cli.ts --compile --minify --target=bun-linux-arm64 --outfile bin/git-hooks-linux-arm64", |
| 51 | + "compile:windows-x64": "bun build ./bin/cli.ts --compile --minify --target=bun-windows-x64 --outfile bin/git-hooks-windows-x64.exe", |
| 52 | + "compile:darwin-x64": "bun build ./bin/cli.ts --compile --minify --target=bun-darwin-x64 --outfile bin/git-hooks-darwin-x64", |
| 53 | + "compile:darwin-arm64": "bun build ./bin/cli.ts --compile --minify --target=bun-darwin-arm64 --outfile bin/git-hooks-darwin-arm64", |
47 | 54 | "postinstall": "bun ./scripts/postinstall.ts",
|
48 | 55 | "uninstall": "bun ./scripts/uninstall.ts",
|
49 | 56 | "lint": "bunx --bun eslint .",
|
50 | 57 | "lint:fix": "bunx --bun eslint . --fix",
|
51 | 58 | "fresh": "bunx rimraf node_modules/ bun.lock && bun i",
|
52 | 59 | "changelog": "bunx changelogen --output CHANGELOG.md",
|
53 |
| - "prepublishOnly": "bun --bun run build", |
| 60 | + "prepublishOnly": "bun --bun run build && bun run compile:all", |
54 | 61 | "release": "bun run changelog && bunx bumpp package.json --all",
|
55 | 62 | "test": "bun test",
|
56 | 63 | "dev:docs": "bun --bun vitepress dev docs",
|
|
0 commit comments