schema.ts is gitignored and generated by `generate:types`, which only `dev` and `build` ran as a prestep — not `check`. The deploy runs `npm run check` before `npm run build`, so on a clean checkout (where schema.ts is absent) check fails with "Cannot find module './schema'" before build ever regenerates it. Give check (and check:watch) the same generate:types prestep so it stands on its own. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -9,8 +9,8 @@
|
||||
"build": "npm run generate:types && vite build",
|
||||
"preview": "vite preview",
|
||||
"prepare": "svelte-kit sync || echo ''",
|
||||
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
||||
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
||||
"check": "npm run generate:types && svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
||||
"check:watch": "npm run generate:types && svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
||||
"format": "prettier --write .",
|
||||
"format:check": "prettier --check ."
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user