From 4c563c8c1f19039b6127b9153b4b5ca6f28d5183 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adel=20Rodr=C3=ADguez?= Date: Thu, 29 Jan 2026 12:55:03 -0400 Subject: [PATCH] chore: consolidate tsconfig presets --- CHANGELOG.md | 12 +++++------- apps/app/tsconfig.json | 7 ++----- apps/desktop/tsconfig.json | 7 ++----- apps/docs/tsconfig.json | 8 ++------ apps/extension/tsconfig.json | 7 ++----- apps/mobile/tsconfig.json | 7 ++----- apps/web/tsconfig.json | 5 +---- packages/ai/tsconfig.json | 3 --- packages/analytics/tsconfig.json | 1 - packages/auth/tsconfig.json | 3 +-- packages/backend/tsconfig.json | 5 ----- packages/core/tsconfig.json | 3 --- packages/db/tsconfig.json | 3 --- packages/email/tsconfig.json | 3 +-- packages/env/tsconfig.json | 3 --- packages/error/tsconfig.json | 3 --- packages/kv/tsconfig.json | 3 +-- packages/observability/tsconfig.json | 3 +-- packages/payments/tsconfig.json | 3 +-- packages/storage/tsconfig.json | 5 ----- packages/ui/tsconfig.json | 5 +---- packages/utils/tsconfig.json | 3 +-- packages/workflows/tsconfig.json | 5 +---- tooling/tsconfig/app.json | 10 ++++++++++ tooling/tsconfig/internal-package.json | 8 ++------ 25 files changed, 36 insertions(+), 89 deletions(-) create mode 100644 tooling/tsconfig/app.json diff --git a/CHANGELOG.md b/CHANGELOG.md index 98db5d00..fd3a177d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,18 +2,16 @@ ## [1.1.0](https://github.com/metaideas/init/compare/init@v1.0.1...init@v1.1.0) (2026-01-27) - ### Features -* add Tailwind sorting and update dependencies ([#69](https://github.com/metaideas/init/issues/69)) ([77b41ca](https://github.com/metaideas/init/commit/77b41ca4fc00fba22d6c874e1753f4d51e45850a)) - +- add Tailwind sorting and update dependencies ([#69](https://github.com/metaideas/init/issues/69)) ([77b41ca](https://github.com/metaideas/init/commit/77b41ca4fc00fba22d6c874e1753f4d51e45850a)) ### Bug Fixes -* add parsing check ([8eefdd1](https://github.com/metaideas/init/commit/8eefdd1ea9a48e131d6f796e7b6780907b989932)) -* **cli:** add stdin inherit for add commands ([9c1db65](https://github.com/metaideas/init/commit/9c1db65b6fcc5c85e1bcbafb16e8a55f614a7718)) -* optional chaining ([480cbf7](https://github.com/metaideas/init/commit/480cbf76feeb3c7837d673d3bd906db0924bd94c)) -* split up monitoring init ([4108ffb](https://github.com/metaideas/init/commit/4108ffb0d749b4cfe958d30843a8b820214f24a9)) +- add parsing check ([8eefdd1](https://github.com/metaideas/init/commit/8eefdd1ea9a48e131d6f796e7b6780907b989932)) +- **cli:** add stdin inherit for add commands ([9c1db65](https://github.com/metaideas/init/commit/9c1db65b6fcc5c85e1bcbafb16e8a55f614a7718)) +- optional chaining ([480cbf7](https://github.com/metaideas/init/commit/480cbf76feeb3c7837d673d3bd906db0924bd94c)) +- split up monitoring init ([4108ffb](https://github.com/metaideas/init/commit/4108ffb0d749b4cfe958d30843a8b820214f24a9)) ## [1.0.1](https://github.com/metaideas/init/compare/init@v1.0.0...init@v1.0.1) (2026-01-12) diff --git a/apps/app/tsconfig.json b/apps/app/tsconfig.json index 6d32b270..84f9353d 100644 --- a/apps/app/tsconfig.json +++ b/apps/app/tsconfig.json @@ -1,10 +1,7 @@ { - "extends": "@tooling/tsconfig/base", + "extends": "@tooling/tsconfig/app", "compilerOptions": { - "lib": ["ESNext", "DOM", "DOM.Iterable"], - "jsx": "preserve", - "noEmit": true, - "allowImportingTsExtensions": true + "jsx": "preserve" }, "include": ["src", "reset.d.ts"], "exclude": ["node_modules"] diff --git a/apps/desktop/tsconfig.json b/apps/desktop/tsconfig.json index 3a4e0e62..f62e7e1d 100644 --- a/apps/desktop/tsconfig.json +++ b/apps/desktop/tsconfig.json @@ -1,10 +1,7 @@ { - "extends": "@tooling/tsconfig/base", + "extends": "@tooling/tsconfig/app", "compilerOptions": { - "lib": ["ESNext", "DOM", "DOM.Iterable"], - "jsx": "preserve", - "noEmit": true, - "allowImportingTsExtensions": true + "jsx": "preserve" }, "exclude": ["node_modules"], "include": ["reset.d.ts", "src"] diff --git a/apps/docs/tsconfig.json b/apps/docs/tsconfig.json index 94652cc0..7d6a7110 100644 --- a/apps/docs/tsconfig.json +++ b/apps/docs/tsconfig.json @@ -1,14 +1,10 @@ { - "extends": "@tooling/tsconfig/base", + "extends": "@tooling/tsconfig/app", "compilerOptions": { - "lib": ["ESNext", "DOM", "DOM.Iterable"], "jsx": "preserve", - "moduleResolution": "bundler", // Properly support importing CJS modules in ESM "esModuleInterop": true, - "plugins": [{ "name": "@astrojs/ts-plugin" }], - "noEmit": true, - "allowImportingTsExtensions": true + "plugins": [{ "name": "@astrojs/ts-plugin" }] }, "include": [".astro/types.d.ts", "src", "reset.d.ts", "astro.config.ts"], "exclude": ["dist", "node_modules"] diff --git a/apps/extension/tsconfig.json b/apps/extension/tsconfig.json index 0602570b..e1e6712b 100644 --- a/apps/extension/tsconfig.json +++ b/apps/extension/tsconfig.json @@ -1,10 +1,7 @@ { - "extends": "@tooling/tsconfig/base", + "extends": "@tooling/tsconfig/app", "compilerOptions": { - "lib": ["ESNext", "DOM", "DOM.Iterable"], - "jsx": "preserve", - "noEmit": true, - "allowImportingTsExtensions": true + "jsx": "preserve" }, "include": ["src", "reset.d.ts", "./.wxt/wxt.d.ts"], "exclude": ["node_modules"] diff --git a/apps/mobile/tsconfig.json b/apps/mobile/tsconfig.json index ed79818d..fc5c5ff0 100644 --- a/apps/mobile/tsconfig.json +++ b/apps/mobile/tsconfig.json @@ -1,10 +1,7 @@ { - "extends": ["@tooling/tsconfig/base", "expo/tsconfig.base"], + "extends": ["@tooling/tsconfig/app", "expo/tsconfig.base"], "compilerOptions": { - "lib": ["ESNext", "DOM"], - "jsx": "preserve", - "noEmit": true, - "allowImportingTsExtensions": true + "jsx": "preserve" }, "include": ["src", "app.config.ts", "reset.d.ts", "expo-env.d.ts", ".expo/types/**/*.ts"], "exclude": ["node_modules"] diff --git a/apps/web/tsconfig.json b/apps/web/tsconfig.json index 9706bd57..7d6a7110 100644 --- a/apps/web/tsconfig.json +++ b/apps/web/tsconfig.json @@ -1,10 +1,7 @@ { - "extends": "@tooling/tsconfig/base", + "extends": "@tooling/tsconfig/app", "compilerOptions": { - "lib": ["ESNext", "DOM", "DOM.Iterable"], "jsx": "preserve", - "moduleResolution": "bundler", - "noEmit": true, // Properly support importing CJS modules in ESM "esModuleInterop": true, "plugins": [{ "name": "@astrojs/ts-plugin" }] diff --git a/packages/ai/tsconfig.json b/packages/ai/tsconfig.json index dcbd3cf0..350d5396 100644 --- a/packages/ai/tsconfig.json +++ b/packages/ai/tsconfig.json @@ -1,8 +1,5 @@ { "extends": "@tooling/tsconfig/internal-package.json", - "compilerOptions": { - "rootDir": "." - }, "include": ["*.ts", "src"], "exclude": ["node_modules"] } diff --git a/packages/analytics/tsconfig.json b/packages/analytics/tsconfig.json index dbfcafec..43991af9 100644 --- a/packages/analytics/tsconfig.json +++ b/packages/analytics/tsconfig.json @@ -2,7 +2,6 @@ "extends": "@tooling/tsconfig/internal-package.json", "compilerOptions": { "lib": ["ESNext", "DOM", "DOM.Iterable"], - "rootDir": ".", "jsx": "preserve" }, "include": ["src", "reset.d.ts"], diff --git a/packages/auth/tsconfig.json b/packages/auth/tsconfig.json index 4781b480..f7915625 100644 --- a/packages/auth/tsconfig.json +++ b/packages/auth/tsconfig.json @@ -1,8 +1,7 @@ { "extends": "@tooling/tsconfig/internal-package.json", "compilerOptions": { - "jsx": "preserve", - "rootDir": "." + "jsx": "preserve" }, "include": ["src", "reset.d.ts"], "exclude": ["node_modules"] diff --git a/packages/backend/tsconfig.json b/packages/backend/tsconfig.json index e7005f8b..abf8f656 100644 --- a/packages/backend/tsconfig.json +++ b/packages/backend/tsconfig.json @@ -1,10 +1,5 @@ { "extends": "@tooling/tsconfig/internal-package.json", - "compilerOptions": { - "rootDir": ".", - "noEmit": true, - "allowImportingTsExtensions": true - }, "include": ["src"], "exclude": ["node_modules", "src/functions/_generated"] } diff --git a/packages/core/tsconfig.json b/packages/core/tsconfig.json index 34c1d0c5..00ccfbe1 100644 --- a/packages/core/tsconfig.json +++ b/packages/core/tsconfig.json @@ -1,8 +1,5 @@ { "extends": "@tooling/tsconfig/internal-package.json", - "compilerOptions": { - "rootDir": "." - }, "include": ["src", "reset.d.ts"], "exclude": ["node_modules"] } diff --git a/packages/db/tsconfig.json b/packages/db/tsconfig.json index 2cb3df4b..587fcbc8 100644 --- a/packages/db/tsconfig.json +++ b/packages/db/tsconfig.json @@ -1,8 +1,5 @@ { "extends": "@tooling/tsconfig/internal-package.json", - "compilerOptions": { - "rootDir": "." - }, "include": ["drizzle.config.ts", "src", "scripts", "reset.d.ts"], "exclude": ["node_modules"] } diff --git a/packages/email/tsconfig.json b/packages/email/tsconfig.json index 4781b480..f7915625 100644 --- a/packages/email/tsconfig.json +++ b/packages/email/tsconfig.json @@ -1,8 +1,7 @@ { "extends": "@tooling/tsconfig/internal-package.json", "compilerOptions": { - "jsx": "preserve", - "rootDir": "." + "jsx": "preserve" }, "include": ["src", "reset.d.ts"], "exclude": ["node_modules"] diff --git a/packages/env/tsconfig.json b/packages/env/tsconfig.json index 34c1d0c5..00ccfbe1 100644 --- a/packages/env/tsconfig.json +++ b/packages/env/tsconfig.json @@ -1,8 +1,5 @@ { "extends": "@tooling/tsconfig/internal-package.json", - "compilerOptions": { - "rootDir": "." - }, "include": ["src", "reset.d.ts"], "exclude": ["node_modules"] } diff --git a/packages/error/tsconfig.json b/packages/error/tsconfig.json index dcbd3cf0..350d5396 100644 --- a/packages/error/tsconfig.json +++ b/packages/error/tsconfig.json @@ -1,8 +1,5 @@ { "extends": "@tooling/tsconfig/internal-package.json", - "compilerOptions": { - "rootDir": "." - }, "include": ["*.ts", "src"], "exclude": ["node_modules"] } diff --git a/packages/kv/tsconfig.json b/packages/kv/tsconfig.json index c8710ecb..a8d5abae 100644 --- a/packages/kv/tsconfig.json +++ b/packages/kv/tsconfig.json @@ -1,8 +1,7 @@ { "extends": "@tooling/tsconfig/internal-package.json", "compilerOptions": { - "lib": ["ESNext", "DOM"], - "rootDir": "." + "lib": ["ESNext", "DOM", "DOM.Iterable"] }, "include": ["src", "reset.d.ts"], "exclude": ["node_modules"] diff --git a/packages/observability/tsconfig.json b/packages/observability/tsconfig.json index c8710ecb..a8d5abae 100644 --- a/packages/observability/tsconfig.json +++ b/packages/observability/tsconfig.json @@ -1,8 +1,7 @@ { "extends": "@tooling/tsconfig/internal-package.json", "compilerOptions": { - "lib": ["ESNext", "DOM"], - "rootDir": "." + "lib": ["ESNext", "DOM", "DOM.Iterable"] }, "include": ["src", "reset.d.ts"], "exclude": ["node_modules"] diff --git a/packages/payments/tsconfig.json b/packages/payments/tsconfig.json index 46db68c1..a8d5abae 100644 --- a/packages/payments/tsconfig.json +++ b/packages/payments/tsconfig.json @@ -1,8 +1,7 @@ { "extends": "@tooling/tsconfig/internal-package.json", "compilerOptions": { - "lib": ["ESNext", "DOM", "DOM.Iterable"], - "rootDir": "." + "lib": ["ESNext", "DOM", "DOM.Iterable"] }, "include": ["src", "reset.d.ts"], "exclude": ["node_modules"] diff --git a/packages/storage/tsconfig.json b/packages/storage/tsconfig.json index c992d10b..00ccfbe1 100644 --- a/packages/storage/tsconfig.json +++ b/packages/storage/tsconfig.json @@ -1,10 +1,5 @@ { "extends": "@tooling/tsconfig/internal-package.json", - "compilerOptions": { - "rootDir": ".", - "noEmit": true, - "allowImportingTsExtensions": true - }, "include": ["src", "reset.d.ts"], "exclude": ["node_modules"] } diff --git a/packages/ui/tsconfig.json b/packages/ui/tsconfig.json index dfd01489..43991af9 100644 --- a/packages/ui/tsconfig.json +++ b/packages/ui/tsconfig.json @@ -2,10 +2,7 @@ "extends": "@tooling/tsconfig/internal-package.json", "compilerOptions": { "lib": ["ESNext", "DOM", "DOM.Iterable"], - "jsx": "preserve", - "rootDir": ".", - "noEmit": true, - "allowImportingTsExtensions": true + "jsx": "preserve" }, "include": ["src", "reset.d.ts"], "exclude": ["node_modules"] diff --git a/packages/utils/tsconfig.json b/packages/utils/tsconfig.json index 506b1a15..43991af9 100644 --- a/packages/utils/tsconfig.json +++ b/packages/utils/tsconfig.json @@ -2,8 +2,7 @@ "extends": "@tooling/tsconfig/internal-package.json", "compilerOptions": { "lib": ["ESNext", "DOM", "DOM.Iterable"], - "jsx": "preserve", - "rootDir": "." + "jsx": "preserve" }, "include": ["src", "reset.d.ts"], "exclude": ["node_modules"] diff --git a/packages/workflows/tsconfig.json b/packages/workflows/tsconfig.json index 4b4ef7f0..a8d5abae 100644 --- a/packages/workflows/tsconfig.json +++ b/packages/workflows/tsconfig.json @@ -1,10 +1,7 @@ { "extends": "@tooling/tsconfig/internal-package.json", "compilerOptions": { - "lib": ["ESNext", "DOM", "DOM.Iterable"], - "rootDir": ".", - "noEmit": true, - "allowImportingTsExtensions": true + "lib": ["ESNext", "DOM", "DOM.Iterable"] }, "include": ["src", "reset.d.ts"], "exclude": ["node_modules"] diff --git a/tooling/tsconfig/app.json b/tooling/tsconfig/app.json new file mode 100644 index 00000000..a40f9223 --- /dev/null +++ b/tooling/tsconfig/app.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://json.schemastore.org/tsconfig", + "extends": "./base.json", + "display": "App", + "compilerOptions": { + "lib": ["ESNext", "DOM", "DOM.Iterable"], + "noEmit": true, + "allowImportingTsExtensions": true + } +} diff --git a/tooling/tsconfig/internal-package.json b/tooling/tsconfig/internal-package.json index c3c2708d..b33e9de6 100644 --- a/tooling/tsconfig/internal-package.json +++ b/tooling/tsconfig/internal-package.json @@ -2,12 +2,8 @@ "$schema": "https://json.schemastore.org/tsconfig", "extends": "./base.json", "compilerOptions": { - "declaration": false, - "declarationMap": false, - "emitDeclarationOnly": false, - "noEmit": false, - "outDir": "${configDir}/dist", - "skipLibCheck": true + "noEmit": true, + "allowImportingTsExtensions": true }, "include": ["src"], "exclude": ["node_modules"]