Skip to content

Commit f550c71

Browse files
committed
chore: optimize package.json scripts and fix ci build command
Remove redundant 'bun run' prefixes from scripts for brevity and consistency. Clean up unused scripts and update CI to use build:prod for proper production builds.
1 parent a108a90 commit f550c71

2 files changed

Lines changed: 6 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
run: nix develop .# --command bun install
7979

8080
- name: Build (Nix devShell)
81-
run: nix develop .# --command bun build
81+
run: nix develop .# --command bun build:prod
8282

8383
- name: Quality checks (Nix devShell)
8484
run: nix develop .# --command bun ${{matrix.quality}}

package.json

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,16 @@
4444
"typecheck": "tsc --noEmit",
4545
"typecheck:watch": "tsc --noEmit --watch",
4646
"test:e2e": "PW_DISABLE_TS_ESM=1 NODE_ENV=test bun --bun playwright test",
47-
"test:all": "bun test && bun run test:e2e",
48-
"build": "bun run clean && vite build",
49-
"build:dev": "vite build --mode development",
50-
"build:prod": "vite build --mode production",
51-
"prepack": "bun run build:prod",
52-
"install:web:dev": "bun run build:dev",
53-
"install:all:dev": "bun run install:web:dev",
54-
"run:all:dev": "bun run install:all:dev && LOG_LEVEL=silent opencode",
47+
"test:all": "bun test && bun test:e2e",
48+
"build:dev": "bun clean && vite build --mode development",
49+
"build:prod": "bun clean && vite build --mode production",
50+
"prepack": "bun build:prod",
5551
"clean": "rm -rf dist playwright-report test-results",
5652
"lint": "eslint . --ext .ts,.tsx,.js,.jsx",
5753
"lint:fix": "eslint . --ext .ts,.tsx,.js,.jsx --fix",
5854
"format": "prettier --write .",
5955
"format:check": "prettier --check .",
60-
"quality": "bun run lint && bun run format:check && bun run typecheck"
56+
"quality": "bun lint && bun format:check && bun typecheck"
6157
},
6258
"devDependencies": {
6359
"@playwright/test": "1.57.0",

0 commit comments

Comments
 (0)