|
52 | 52 | "compile:windows-x64": "bun build ./bin/cli.ts --compile --minify --target=bun-windows-x64 --outfile bin/clarity-windows-x64.exe",
|
53 | 53 | "compile:darwin-x64": "bun build ./bin/cli.ts --compile --minify --target=bun-darwin-x64 --outfile bin/clarity-darwin-x64",
|
54 | 54 | "compile:darwin-arm64": "bun build ./bin/cli.ts --compile --minify --target=bun-darwin-arm64 --outfile bin/clarity-darwin-arm64",
|
| 55 | + "zip": "bun run zip:all", |
| 56 | + "zip:all": "bun run zip:linux-x64 && bun run zip:linux-arm64 && bun run zip:windows-x64 && bun run zip:darwin-x64 && bun run zip:darwin-arm64", |
| 57 | + "zip:linux-x64": "zip -j bin/clarity-linux-x64.zip bin/clarity-linux-x64", |
| 58 | + "zip:linux-arm64": "zip -j bin/clarity-linux-arm64.zip bin/clarity-linux-arm64", |
| 59 | + "zip:windows-x64": "zip -j bin/clarity-windows-x64.zip bin/clarity-windows-x64.exe", |
| 60 | + "zip:darwin-x64": "zip -j bin/clarity-darwin-x64.zip bin/clarity-darwin-x64", |
| 61 | + "zip:darwin-arm64": "zip -j bin/clarity-darwin-arm64.zip bin/clarity-darwin-arm64", |
55 | 62 | "lint": "bunx --bun eslint .",
|
56 | 63 | "lint:fix": "bunx --bun eslint . --fix",
|
57 | 64 | "fresh": "bunx rimraf node_modules/ bun.lock && bun i",
|
58 | 65 | "changelog": "bunx changelogen --output CHANGELOG.md",
|
59 |
| - "prepublishOnly": "bun --bun run build && bun run compile:all", |
| 66 | + "prepublishOnly": "bun --bun run build && bun run compile:all && bun run zip", |
60 | 67 | "release": "bun run changelog && bunx bumpp package.json --all",
|
61 | 68 | "test": "bun test",
|
62 | 69 | "dev:docs": "bun --bun vitepress dev docs",
|
|
0 commit comments