Skip to content

Commit 590bc18

Browse files
authored
[test] Fix npm run typecheck (#1423)
1 parent 1c931a6 commit 590bc18

File tree

2 files changed

+49
-5
lines changed

2 files changed

+49
-5
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@
1111
"scripts": {
1212
"prebuild": "rimraf dist",
1313
"build": "npm-run-all --parallel build:main build:bundle:main build:bundle:pure",
14-
"build:bundle:main": "dotenv -e .bundle.main.env kcd-scripts build -- --bundle --no-clean",
15-
"build:bundle:pure": "dotenv -e .bundle.main.env -e .bundle.pure.env kcd-scripts build -- --bundle --no-clean",
16-
"build:main": "kcd-scripts build --no-clean",
14+
"build:bundle:main": "dotenv -e .bundle.main.env kcd-scripts build -- --bundle --no-clean --no-ts-defs",
15+
"build:bundle:pure": "dotenv -e .bundle.main.env -e .bundle.pure.env kcd-scripts build -- --bundle --no-clean --no-ts-defs",
16+
"build:main": "kcd-scripts build --no-clean --no-ts-defs",
1717
"format": "kcd-scripts format",
1818
"install:csb": "npm install",
1919
"lint": "kcd-scripts lint",
2020
"setup": "npm install && npm run validate -s",
2121
"test": "kcd-scripts test",
2222
"test:update": "npm test -- --updateSnapshot --coverage",
23-
"typecheck": "kcd-scripts typecheck --build types",
23+
"typecheck": "tsc --project tsconfig.json",
2424
"validate": "kcd-scripts validate"
2525
},
2626
"files": [
@@ -60,7 +60,7 @@
6060
"react": "^19.0.0",
6161
"react-dom": "^19.0.0",
6262
"rimraf": "^3.0.2",
63-
"typescript": "^4.1.2"
63+
"typescript": "^5.9.3"
6464
},
6565
"peerDependencies": {
6666
"@testing-library/dom": "^10.0.0",

tsconfig.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
// Visit https://aka.ms/tsconfig to read more about this file
3+
"compilerOptions": {
4+
// File Layout
5+
// "rootDir": "./src",
6+
// "outDir": "./dist",
7+
8+
// Environment Settings
9+
// See also https://aka.ms/tsconfig/module
10+
"module": "nodenext",
11+
"target": "esnext",
12+
// For nodejs:
13+
"lib": ["esnext", "DOM"],
14+
"types": ["node"],
15+
16+
// Other Outputs
17+
"sourceMap": true,
18+
"declaration": true,
19+
"declarationMap": true,
20+
21+
// Stricter Typechecking Options
22+
"noUncheckedIndexedAccess": true,
23+
"exactOptionalPropertyTypes": true,
24+
25+
// Style Options
26+
// "noImplicitReturns": true,
27+
// "noImplicitOverride": true,
28+
// "noUnusedLocals": true,
29+
// "noUnusedParameters": true,
30+
// "noFallthroughCasesInSwitch": true,
31+
// "noPropertyAccessFromIndexSignature": true,
32+
33+
"strict": true,
34+
"jsx": "react-jsx",
35+
"verbatimModuleSyntax": false,
36+
"isolatedModules": true,
37+
"noUncheckedSideEffectImports": true,
38+
"moduleDetection": "force",
39+
"skipLibCheck": false,
40+
41+
"noEmit": true
42+
},
43+
"include": ["types"]
44+
}

0 commit comments

Comments
 (0)