Skip to content

Commit 2f8904a

Browse files
committed
Add tsconfig.check.json for type-checking tests
1 parent 9a69fd5 commit 2f8904a

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"check:lint": "eslint --report-unused-disable-directives .",
3535
"check:lint:fix": "pnpm run check:lint --fix",
3636
"build": "pnpm run clean:dist && tsgo --build",
37-
"check:tsc": "tsgo --noEmit",
37+
"check:tsc": "tsgo --noEmit -p tsconfig.check.json",
3838
"clean:dist": "del-cli 'dist' '**/*.tsbuildinfo'",
3939
"clean": "run-s -c clean:*",
4040
"clean:cache": "del-cli '**/.cache'",

tsconfig.check.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"extends": "./tsconfig.base.json",
3+
"compilerOptions": {
4+
"module": "esnext",
5+
"moduleResolution": "bundler",
6+
"noEmit": true,
7+
"noPropertyAccessFromIndexSignature": false,
8+
"noUncheckedIndexedAccess": false,
9+
"types": ["vitest/globals", "node"],
10+
"verbatimModuleSyntax": false
11+
},
12+
"include": ["test/**/*.mts", "src/**/*.ts"]
13+
}

0 commit comments

Comments
 (0)