From a8a42797e51adae052b3ba1e2a4df4f8dc74ca3a Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Sun, 26 Apr 2026 17:53:13 +0300 Subject: [PATCH] Exclude scripts from main typecheck The dicts might or might not exist. The new command can be ran when the dicts do exist. --- package.json | 1 + scripts/tsconfig.json | 5 +++++ tsconfig.json | 1 + 3 files changed, 7 insertions(+) create mode 100644 scripts/tsconfig.json 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"],