Exclude scripts from main typecheck

The dicts might or might not exist. The new command can be ran
when the dicts do exist.
This commit is contained in:
Kalle
2026-04-26 17:53:13 +03:00
parent e1b9be7feb
commit a8a42797e5
3 changed files with 7 additions and 0 deletions

View File

@@ -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",

5
scripts/tsconfig.json Normal file
View File

@@ -0,0 +1,5 @@
{
"extends": "../tsconfig.json",
"include": ["./**/*.ts", "../types/**/*.d.ts"],
"exclude": []
}

View File

@@ -5,6 +5,7 @@
"**/*.tsx",
".react-router/types/**/*"
],
"exclude": ["scripts/**/*"],
"compilerOptions": {
"types": ["@react-router/node", "vite/client"],
"rootDirs": [".", "./.react-router/types"],