Skip to content

Commit

Permalink
chore: improve tsconfigs
Browse files Browse the repository at this point in the history
  • Loading branch information
yordis committed May 16, 2024
1 parent b1473fe commit 9ec84a4
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/zitadel-client/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@zitadel/tsconfig/node14.json",
"extends": "@zitadel/tsconfig/node20.json",
"include": ["."],
"compilerOptions": {
"baseUrl": "."
Expand Down
2 changes: 1 addition & 1 deletion packages/zitadel-server/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@zitadel/tsconfig/node14.json",
"extends": "@zitadel/tsconfig/node20.json",
"include": ["src/**/*.ts"],
"compilerOptions": {
"baseUrl": ".",
Expand Down
2 changes: 1 addition & 1 deletion packages/zitadel-tsconfig/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"forceConsistentCasingInFileNames": true,
"inlineSources": false,
"isolatedModules": true,
"moduleResolution": "node",
"moduleResolution": "node16",
"noUnusedLocals": false,
"noUnusedParameters": false,
"preserveWatchOutput": true,
Expand Down
5 changes: 4 additions & 1 deletion packages/zitadel-tsconfig/nextjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"preserveSymlinks": true,
"declaration": false,
"declarationMap": false,
"baseUrl": ".",
"plugins": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Node 14",
"display": "Node 20",
"extends": "./base.json",
"compilerOptions": {
"lib": ["ES2020"],
"module": "commonjs",
"target": "ES2020"
"lib": ["es2023"],
"module": "node16",
"target": "es2022"
}
}
4 changes: 2 additions & 2 deletions packages/zitadel-tsconfig/react-library.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"compilerOptions": {
"jsx": "react-jsx",
"lib": ["dom", "ES2015"],
"module": "ESNext",
"target": "es6"
"module": "preserve",
"moduleResolution": "Bundler"
}
}
9 changes: 9 additions & 0 deletions packages/zitadel-tsconfig/tsup.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "tsup",
"extends": "./node20.json",
"compilerOptions": {
"module": "preserve",
"moduleResolution": "Bundler"
}
}

0 comments on commit 9ec84a4

Please sign in to comment.