Redesign tsconfig.json files

This commit is contained in:
James Brunton 2025-10-30 16:39:37 +00:00
parent 8060934ee9
commit f1f8c52b00
6 changed files with 14 additions and 11 deletions

View File

@ -62,9 +62,9 @@
"lint": "eslint --max-warnings=0",
"build": "vite build",
"preview": "vite preview",
"typecheck": "tsc --noEmit",
"typecheck:core": "tsc --noEmit --project tsconfig.core.json",
"typecheck:proprietary": "tsc --noEmit --project tsconfig.proprietary.json",
"typecheck": "npm run typecheck:proprietary",
"typecheck:core": "tsc --noEmit --project src/core/tsconfig.json",
"typecheck:proprietary": "tsc --noEmit --project src/proprietary/tsconfig.json",
"typecheck:all": "npm run typecheck:core && npm run typecheck:proprietary",
"check": "npm run typecheck && npm run lint && npm run test:run",
"generate-licenses": "node scripts/generate-licenses.js",

View File

@ -1,5 +1,5 @@
{
"extends": "./tsconfig.json",
"extends": "../../tsconfig.json",
"compilerOptions": {
"paths": {
"@app/*": [
@ -9,7 +9,7 @@
}
},
"exclude": [
"src/proprietary",
"../proprietary",
"node_modules"
]
}

View File

@ -1,5 +1,5 @@
{
"extends": "./tsconfig.json",
"extends": "../../tsconfig.json",
"compilerOptions": {
"paths": {
"@app/*": [
@ -9,5 +9,8 @@
"@proprietary/*": ["src/proprietary/*"],
"@core/*": ["src/core/*"]
}
}
},
"exclude": [
"node_modules"
]
}

View File

@ -35,8 +35,8 @@
"src/proprietary/*",
"src/core/*"
],
"@core/*": ["src/core/*"],
"@proprietary/*": ["src/proprietary/*"]
"@proprietary/*": ["src/proprietary/*"],
"@core/*": ["src/core/*"]
},
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */

View File

@ -10,7 +10,7 @@ export default defineConfig({
react(),
tsconfigPaths({
projects: [
isProprietary ? './tsconfig.proprietary.json' : './tsconfig.core.json',
isProprietary ? './src/proprietary/tsconfig.json' : './src/core/tsconfig.json',
],
}),
],

View File

@ -10,7 +10,7 @@ export default defineConfig({
react(),
tsconfigPaths({
projects: [
isProprietary ? './tsconfig.proprietary.json' : './tsconfig.core.json',
isProprietary ? './src/proprietary/tsconfig.json' : './src/core/tsconfig.json',
],
}),
],