Skip to content

Commit b646ef1

Browse files
fix: typeScript configuration and build scripts
1 parent 918540f commit b646ef1

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"scripts": {
88
"postinstall": "husky install",
99
"dev": "vite",
10-
"build": "tsc && vite build",
10+
"build": "tsc -b && vite build",
1111
"start": "vite preview",
1212
"build:staging": "tsc && vite build --mode staging",
1313
"start:staging": "vite preview",
@@ -16,7 +16,7 @@
1616
"format": "prettier --write src/ index.html --ignore-unknown --no-error-on-unmatched-pattern",
1717
"tsr:watch": "tsr watch",
1818
"tsr:generate": "tsr generate",
19-
"typecheck": "tsc"
19+
"typecheck": "tsc -b"
2020
},
2121
"dependencies": {
2222
"@tanstack/react-query": "^5.66.11",

tsconfig.app.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,26 @@
1010
/* Bundler mode */
1111
"moduleResolution": "bundler",
1212
"allowImportingTsExtensions": true,
13+
"resolveJsonModule": true,
1314
"isolatedModules": true,
1415
"moduleDetection": "force",
1516
"noEmit": true,
1617
"jsx": "react-jsx",
1718

1819
/* Linting */
1920
"strict": true,
21+
"noImplicitAny": true,
2022
"noUnusedLocals": true,
23+
"strictNullChecks": true,
2124
"noUnusedParameters": true,
2225
"noFallthroughCasesInSwitch": true,
23-
"noUncheckedSideEffectImports": true
26+
"noUncheckedSideEffectImports": true,
27+
"forceConsistentCasingInFileNames": true,
28+
29+
"baseUrl": ".",
30+
"paths": {
31+
"@/*": ["./src/*"]
32+
}
2433
},
2534
"include": ["src"]
2635
}

tsconfig.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
{
22
"files": [],
3-
"references": [{ "path": "./tsconfig.app.json" }, { "path": "./tsconfig.node.json" }]
3+
"references": [{ "path": "./tsconfig.app.json" }, { "path": "./tsconfig.node.json" }],
4+
"compilerOptions": {
5+
"baseUrl": ".",
6+
"paths": {
7+
"@/*": ["./src/*"]
8+
}
9+
}
410
}

0 commit comments

Comments
 (0)