Skip to content

Commit 4ab07d5

Browse files
committed
fix(web): generate license notices before check-types so CI tsc finds the JSON
The /licenses page imports apps/web/src/generated/open-source-licenses.json, which is produced by build:licenses (gitignored). prebuild generates it for `next build`, but `check-types` ran tsc directly, so CI failed with TS2307 since 9d3c12d. Prefix check-types with build:licenses to keep the import resolvable in fresh checkouts.
1 parent 8c55a0b commit 4ab07d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"build:sw": "esbuild src/sw.ts --bundle --outfile=public/sw.js --format=iife --platform=browser --define:process.env.NODE_ENV='\"production\"'",
1212
"build:copy-assets": "mkdir -p .next/standalone/apps/web/public .next/standalone/apps/web/.next/static && cp -R public/. .next/standalone/apps/web/public/ && cp -R .next/static/. .next/standalone/apps/web/.next/static/",
1313
"start": "node .next/standalone/apps/web/server.js",
14-
"check-types": "tsc --noEmit && tsc --noEmit -p tsconfig.sw.json",
14+
"check-types": "pnpm build:licenses && tsc --noEmit && tsc --noEmit -p tsconfig.sw.json",
1515
"icons:sync": "node scripts/copy-preset-icons.mjs"
1616
},
1717
"dependencies": {

0 commit comments

Comments
 (0)