mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-11-18 07:22:06 +00:00
fix: make typecheck pass in CI for static image imports
- Add next/image-types/global reference to global.d.ts so *.jpeg (and other image module) declarations resolve without the gitignored, generated next-env.d.ts, which is absent in fresh CI clones - Run tsc with `--incremental false` in the typeCheck script to bypass the stale tsconfig.tsbuildinfo cache that was emitting a phantom TS2307 for src/app/[locale]/banner.jpeg
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@
|
||||
"build": "next build --webpack",
|
||||
"start": "next start",
|
||||
"lint": "oxlint",
|
||||
"typeCheck": "tsc -p ./tsconfig.json",
|
||||
"typeCheck": "tsc -p ./tsconfig.json --incremental false",
|
||||
"postinstall": "patch-package",
|
||||
"format": "oxfmt --check",
|
||||
"format:fix": "oxfmt",
|
||||
|
||||
Reference in New Issue
Block a user