diff --git a/package.json b/package.json index 8915ca6a1..a7f79e044 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "biome:fix": "biome check --error-on-warnings --write .", "biome:fix:unsafe": "biome check --error-on-warnings --write --unsafe .", "typecheck": "react-router typegen && tsc --noEmit", + "typecheck:scripts": "tsc --noEmit -p scripts", "test:unit:browser": "cross-env VITE_SITE_DOMAIN=http://localhost:5173 BROWSER_HEADLESS=true vitest --silent=passed-only run", "test:browser:ui": "cross-env VITE_SITE_DOMAIN=http://localhost:5173 vitest --silent=passed-only --project browser", "test:unit:browser:ui": "cross-env VITE_SITE_DOMAIN=http://localhost:5173 vitest --silent=passed-only", diff --git a/scripts/tsconfig.json b/scripts/tsconfig.json new file mode 100644 index 000000000..4719c9c7b --- /dev/null +++ b/scripts/tsconfig.json @@ -0,0 +1,5 @@ +{ + "extends": "../tsconfig.json", + "include": ["./**/*.ts", "../types/**/*.d.ts"], + "exclude": [] +} diff --git a/tsconfig.json b/tsconfig.json index 95da52d0c..cf043241b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,6 +5,7 @@ "**/*.tsx", ".react-router/types/**/*" ], + "exclude": ["scripts/**/*"], "compilerOptions": { "types": ["@react-router/node", "vite/client"], "rootDirs": [".", "./.react-router/types"],