File tree Expand file tree Collapse file tree 4 files changed +20
-6
lines changed Expand file tree Collapse file tree 4 files changed +20
-6
lines changed Original file line number Diff line number Diff line change 103
103
"lint" : " eslint src examples" ,
104
104
"test" : " vitest --run --typecheck" ,
105
105
"test:watch" : " vitest --watch" ,
106
- "type-tests" : " yarn tsc -p tsconfig.json" ,
106
+ "type-tests" : " yarn tsc -p tsconfig.test. json --noEmit " ,
107
107
"prepack" : " yarn build"
108
108
},
109
109
"files" : [
Original file line number Diff line number Diff line change 1
1
{
2
+ // For building the library.
2
3
"extends" : " ./tsconfig.base.json" ,
3
4
"compilerOptions" : {
4
5
"outDir" : " dist"
Original file line number Diff line number Diff line change 1
1
{
2
+ // For general development and intellisense.
3
+ // Scans the entire source code against the current TS version
4
+ // we are using during development.
2
5
"extends" : " ./tsconfig.test.json" ,
3
6
"compilerOptions" : {
4
- "skipLibCheck" : true
5
- }
7
+ "skipLibCheck" : true ,
8
+ "rootDir" : " ."
9
+ },
10
+ "include" : [" ." ]
6
11
}
Original file line number Diff line number Diff line change 1
1
{
2
+ // For runtime and type tests during CI.
2
3
"extends" : " ./tsconfig.base.json" ,
3
4
"compilerOptions" : {
4
5
"emitDeclarationOnly" : false ,
5
6
"noEmit" : true ,
6
- "rootDir" : " ." ,
7
+ "rootDir" : " ./src " ,
7
8
"jsx" : " react-jsx" ,
8
- "skipLibCheck" : false ,
9
+ "skipLibCheck" : true ,
9
10
"noImplicitReturns" : false
10
11
},
11
- "exclude" : [" dist" ]
12
+ "exclude" : [" dist" ],
13
+ "include" : [
14
+ " src/**/*.test.ts*" ,
15
+ " src/**/*.test-d.ts*" ,
16
+ " src/**/*.spec.ts*" ,
17
+ " src/**/tests/*" ,
18
+ " src/**/*.typetest.ts*"
19
+ ]
12
20
}
You can’t perform that action at this time.
0 commit comments