File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ lib/*.js
3939test /* .js
4040* .map
4141
42+ * .tsbuildinfo
43+
4244# Project specific
4345WABT
4446core /
Original file line number Diff line number Diff line change 1717 "clean" : " rm -rf dist" ,
1818 "build" : " npm run build:cjs" ,
1919 "build:cjs" : " tsc --project tsconfig.build.json" ,
20+ "build:tests" : " tsc --outDir out --project tsconfig.tests.json" ,
2021 "watch" : " tsc -watch -p ./" ,
2122 "lint" : " eslint src/**/* --config .eslint.config.mjs" ,
22- "test:prebuild" : " npm run build && npx tsc tests/unit/* --outDir out --sourceMap " ,
23+ "test:prebuild" : " npm run build && npm run build: tests" ,
2324 "test:all" : " npm run test:prebuild && npm run test:ava" ,
2425 "test:ava" : " ava" ,
2526 "coverage:test:ava" : " c8 --src src/ --all ava"
Original file line number Diff line number Diff line change 99 "noEmit" : false ,
1010 "declaration" : true ,
1111 "declarationDir" : " dist/types" ,
12- "incremental" : true
12+ "incremental" : true ,
13+ "resolveJsonModule" : true
1314 }
1415}
Original file line number Diff line number Diff line change 1+ {
2+ "extends" : " ./tsconfig.build.json" ,
3+ "include" : [
4+ " tests/unit/**/*.ts"
5+ ],
6+ "compilerOptions" : {
7+ "rootDir" : " ." ,
8+ "sourceMap" : true ,
9+ "noEmit" : false ,
10+ "declaration" : true ,
11+ "declarationDir" : " dist/types" ,
12+ "incremental" : true ,
13+ "resolveJsonModule" : true
14+ }
15+ }
You canβt perform that action at this time.
0 commit comments