Skip to content

Commit ffe0089

Browse files
ochafikclaude
andcommitted
fix: ensure lib is built before examples:build
Add preexamples:build hook to automatically run `npm run build` before `examples:build`. This ensures examples always type-check against the latest library code, catching breaking changes during development. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 68cddec commit ffe0089

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,14 @@
4141
"generate:schemas": "tsx scripts/generate-schemas.ts && prettier --write \"src/generated/**/*\"",
4242
"build": "npm run generate:schemas && node scripts/run-bun.mjs build.bun.ts",
4343
"prepack": "npm run build",
44-
"build:all": "npm run build && npm run examples:build",
44+
"build:all": "npm run examples:build",
4545
"test": "bun test src",
4646
"test:e2e": "playwright test",
4747
"test:e2e:update": "playwright test --update-snapshots",
4848
"test:e2e:ui": "playwright test --ui",
4949
"test:e2e:docker": "docker run --rm -v $(pwd):/work -w /work -it mcr.microsoft.com/playwright:v1.57.0-noble sh -c 'npm i -g bun && npm ci && npx playwright test'",
5050
"test:e2e:docker:update": "docker run --rm -v $(pwd):/work -w /work -it mcr.microsoft.com/playwright:v1.57.0-noble sh -c 'npm i -g bun && npm ci && npx playwright test --update-snapshots'",
51+
"preexamples:build": "npm run build",
5152
"examples:build": "bun examples/run-all.ts build",
5253
"examples:start": "NODE_ENV=development npm run build && bun examples/run-all.ts start",
5354
"examples:dev": "NODE_ENV=development bun examples/run-all.ts dev",

0 commit comments

Comments
 (0)