Skip to content

Commit 3a4e2b2

Browse files
committed
move tsconfig to root, add strict nul checks
1 parent 1c8d790 commit 3a4e2b2

File tree

5 files changed

+27
-21
lines changed

5 files changed

+27
-21
lines changed

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,8 @@ node_modules
2323
/dist/solutions/tsconfig.tsbuildinfo
2424
/dist/solutions/typed-translations.d.ts
2525
/dist/solutions/typed-translations.test.d.ts
26+
/dist/code-generator/generate-schema.d.ts
27+
/dist/code-generator/translation-schema.d.ts
28+
/dist/code-generator/translations.d.ts
29+
/dist/live-demo/infer-template-literals.d.ts
30+
/dist/live-demo/vue-test.d.ts

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"main": "index.js",
66
"scripts": {
77
"test:unit": "vitest run",
8-
"test:ts": "tsc -b src/tsconfig.json",
9-
"dev:ts": "tsc -b src/tsconfig.json --watch",
8+
"test:ts": "tsc -b tsconfig.json",
9+
"dev:ts": "tsc -b tsconfig.json --watch",
1010
"generate-schema": "vite-node --watch src/solutions-codegenerator/generate-schema.ts src/solutions-codegenerator/translation-schema.ts",
1111
"dev:unit": "vitest"
1212
},

src/tsconfig.base.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"resolveJsonModule": true,
55
"esModuleInterop": true,
66
"composite": true,
7-
"skipLibCheck": true
7+
"skipLibCheck": true,
8+
"strictNullChecks": true
89
}
910
}

src/tsconfig.json

-18
This file was deleted.

tsconfig.json

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"compilerOptions": {
3+
"resolveJsonModule": true,
4+
"esModuleInterop": true,
5+
"noEmit": true,
6+
"skipLibCheck": true
7+
},
8+
"references": [
9+
{
10+
"path": "./src/live-demo/tsconfig.json"
11+
},
12+
{ "path": "./src/magic/tsconfig.json"},
13+
{ "path": "./src/real-life/tsconfig.json"},
14+
{ "path": "./src/solutions/tsconfig.json"},
15+
{ "path": "./src/solutions-codegenerator/tsconfig.json"}
16+
],
17+
"files": []
18+
}

0 commit comments

Comments
 (0)