Skip to content

Commit

Permalink
build: incremental type checking (#241)
Browse files Browse the repository at this point in the history
### Build
- Enabled [incremental type
checking](https://www.typescriptlang.org/tsconfig/#incremental) in all
apps, packages and examples.
  • Loading branch information
diego-aquino authored Jul 3, 2024
1 parent ab8bacd commit 2b9f0ac
Show file tree
Hide file tree
Showing 15 changed files with 20 additions and 9 deletions.
1 change: 1 addition & 0 deletions apps/zimic-test-client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"compilerOptions": {
"target": "es6",
"baseUrl": ".",
"tsBuildInfoFile": "tsconfig.tsbuildinfo",
"paths": {
"@/*": ["./src/*"],
"@tests/*": ["./tests/*"]
Expand Down
3 changes: 2 additions & 1 deletion examples/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "@zimic/tsconfig/tsconfig.node.json",
"compilerOptions": {
"target": "es6"
"target": "es6",
"tsBuildInfoFile": "tsconfig.tsbuildinfo"
},
"include": ["**/*.ts", "**/*.mts", "**/*.tsx", "*/tests/resolver.js"],
"exclude": ["node_modules", "**/dist", "**/build"]
Expand Down
3 changes: 2 additions & 1 deletion examples/with-jest-jsdom/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"lib": ["esnext", "dom", "dom.iterable"],
"target": "esnext",
"module": "esnext",
"incremental": false,
"incremental": true,
"tsBuildInfoFile": "tsconfig.tsbuildinfo",
"moduleResolution": "node",
"resolveJsonModule": true,
"skipLibCheck": true,
Expand Down
3 changes: 2 additions & 1 deletion examples/with-jest-node/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"lib": ["esnext", "webworker"],
"target": "es6",
"module": "esnext",
"incremental": false,
"incremental": true,
"tsBuildInfoFile": "tsconfig.tsbuildinfo",
"moduleResolution": "node",
"resolveJsonModule": true,
"skipLibCheck": true,
Expand Down
1 change: 1 addition & 0 deletions examples/with-next-js-app/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"module": "esnext",
"jsx": "preserve",
"incremental": true,
"tsBuildInfoFile": "tsconfig.tsbuildinfo",
"allowJs": true,
"noEmit": true,
"moduleResolution": "node",
Expand Down
1 change: 1 addition & 0 deletions examples/with-next-js-pages/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"module": "esnext",
"jsx": "preserve",
"incremental": true,
"tsBuildInfoFile": "tsconfig.tsbuildinfo",
"allowJs": true,
"noEmit": true,
"moduleResolution": "node",
Expand Down
1 change: 1 addition & 0 deletions examples/with-playwright/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"module": "esnext",
"jsx": "preserve",
"incremental": true,
"tsBuildInfoFile": "tsconfig.tsbuildinfo",
"allowJs": true,
"noEmit": true,
"moduleResolution": "node",
Expand Down
3 changes: 2 additions & 1 deletion examples/with-vitest-browser/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"lib": ["esnext", "dom", "dom.iterable"],
"target": "esnext",
"module": "esnext",
"incremental": false,
"incremental": true,
"tsBuildInfoFile": "tsconfig.tsbuildinfo",
"moduleResolution": "node",
"resolveJsonModule": true,
"skipLibCheck": true,
Expand Down
3 changes: 2 additions & 1 deletion examples/with-vitest-jsdom/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"lib": ["esnext", "dom", "dom.iterable"],
"target": "esnext",
"module": "esnext",
"incremental": false,
"incremental": true,
"tsBuildInfoFile": "tsconfig.tsbuildinfo",
"moduleResolution": "node",
"resolveJsonModule": true,
"skipLibCheck": true,
Expand Down
3 changes: 2 additions & 1 deletion examples/with-vitest-node/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"lib": ["esnext", "webworker"],
"target": "esnext",
"module": "esnext",
"incremental": false,
"incremental": true,
"tsBuildInfoFile": "tsconfig.tsbuildinfo",
"moduleResolution": "node",
"resolveJsonModule": true,
"skipLibCheck": true,
Expand Down
1 change: 1 addition & 0 deletions packages/release/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "@zimic/tsconfig/tsconfig.node.json",
"compilerOptions": {
"target": "es2022",
"tsBuildInfoFile": "tsconfig.tsbuildinfo",
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"],
Expand Down
1 change: 1 addition & 0 deletions packages/tsconfig/tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"noUnusedLocals": false,
"noUnusedParameters": false,
"preserveWatchOutput": true,
"incremental": true,
"skipLibCheck": true,
"pretty": true,
"strict": true
Expand Down
3 changes: 1 addition & 2 deletions packages/tsconfig/tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"display": "Node.js",
"extends": "./tsconfig.base.json",
"compilerOptions": {
"lib": ["esnext", "webworker"],
"incremental": false
"lib": ["esnext", "webworker"]
}
}
1 change: 0 additions & 1 deletion packages/tsconfig/tsconfig.react.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"compilerOptions": {
"lib": ["dom", "dom.iterable", "esnext"],
"jsx": "preserve",
"incremental": true,
"allowJs": true,
"noEmit": true
}
Expand Down
1 change: 1 addition & 0 deletions packages/zimic/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"lib": ["esnext", "dom", "dom.iterable"],
"target": "esnext",
"allowSyntheticDefaultImports": true,
"tsBuildInfoFile": "tsconfig.tsbuildinfo",
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"],
Expand Down

0 comments on commit 2b9f0ac

Please sign in to comment.