Skip to content

Scheduling infrastructure for absolutely everyone.

chore: TS config - ignore node_modules in subdirectories (#19680)

Keith Williams7701edb0bbad
diff --git a/apps/api/v1/tsconfig.json b/apps/api/v1/tsconfig.json
index ba4060d01ff..e1f5e1e9435 100644
--- a/apps/api/v1/tsconfig.json
+++ b/apps/api/v1/tsconfig.json
@@ -18,5 +18,5 @@
"../../../packages/types/*.d.ts",
"../../../packages/types/next-auth.d.ts"
],
- "exclude": ["node_modules", "templates", "auth"]
+ "exclude": ["**/node_modules/**", "templates", "auth"]
}
diff --git a/apps/storybook/tsconfig.json b/apps/storybook/tsconfig.json
index 67c171730ac..5537ae35ea0 100644
--- a/apps/storybook/tsconfig.json
+++ b/apps/storybook/tsconfig.json
@@ -1,7 +1,7 @@
{
"extends": "@calcom/tsconfig/nextjs.json",
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
- "exclude": ["node_modules"],
+ "exclude": ["**/node_modules/**"],
"compilerOptions": {
"noImplicitAny": false,
"baseUrl": "."
diff --git a/apps/swagger/tsconfig.json b/apps/swagger/tsconfig.json
index 053c5a63af2..cb04d6ea77a 100644
--- a/apps/swagger/tsconfig.json
+++ b/apps/swagger/tsconfig.json
@@ -13,5 +13,5 @@
"**/*.ts",
"**/*.tsx"
],
- "exclude": ["node_modules"]
+ "exclude": ["**/node_modules/**"]
}
diff --git a/apps/web/tsconfig.json b/apps/web/tsconfig.json
index eae67c4e7cc..cd5a2fe7cb3 100644
--- a/apps/web/tsconfig.json
+++ b/apps/web/tsconfig.json
@@ -34,5 +34,5 @@
"../../packages/features/bookings/lib/getUserBooking.ts",
"../../packages/features/Segment.tsx"
],
- "exclude": ["node_modules", ".next"]
+ "exclude": ["**/node_modules/**", ".next"]
}
diff --git a/example-apps/credential-sync/tsconfig.json b/example-apps/credential-sync/tsconfig.json
index 093985aafb4..2403cbbe386 100644
--- a/example-apps/credential-sync/tsconfig.json
+++ b/example-apps/credential-sync/tsconfig.json
@@ -15,5 +15,5 @@
"jsx": "preserve"
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
- "exclude": ["node_modules"]
+ "exclude": ["**/node_modules/**"]
}
diff --git a/packages/app-store/tsconfig.json b/packages/app-store/tsconfig.json
index 8e9faeb56eb..cacd085f240 100644
--- a/packages/app-store/tsconfig.json
+++ b/packages/app-store/tsconfig.json
@@ -1,6 +1,6 @@
{
"extends": "@calcom/tsconfig/react-library.json",
- "exclude": ["dist", "build", "node_modules"],
+ "exclude": ["dist", "build", "**/node_modules/**"],
"compilerOptions": {
"baseUrl": ".",
"paths": {
diff --git a/packages/debugging/tsconfig.json b/packages/debugging/tsconfig.json
index 4b507010c54..13eb55797ff 100644
--- a/packages/debugging/tsconfig.json
+++ b/packages/debugging/tsconfig.json
@@ -10,5 +10,5 @@
"**/*.ts",
"**/*.tsx"
],
- "exclude": ["dist", "build", "node_modules"]
+ "exclude": ["dist", "build", "**/node_modules/**"]
}
diff --git a/packages/embeds/embed-core/tsconfig.json b/packages/embeds/embed-core/tsconfig.json
index b8e3b55b65e..a4f4daf98c0 100644
--- a/packages/embeds/embed-core/tsconfig.json
+++ b/packages/embeds/embed-core/tsconfig.json
@@ -13,5 +13,5 @@
}
},
"include": ["src", "env.d.ts", "index.ts", "*.ts"],
- "exclude": ["dist", "build", "node_modules"]
+ "exclude": ["dist", "build", "**/node_modules/**"]
}
diff --git a/packages/embeds/embed-react/tsconfig.json b/packages/embeds/embed-react/tsconfig.json
index 5d5e3df9943..38cbe056434 100644
--- a/packages/embeds/embed-react/tsconfig.json
+++ b/packages/embeds/embed-react/tsconfig.json
@@ -15,5 +15,5 @@
},
"include": ["src/**/*.ts", "src/**/*.tsx", "env.d.ts", "*.tsx", "*.ts"],
// Exclude "test" because that has `api.test.ts` which imports @calcom/embed-react which needs it to be built using this tsconfig.json first. Excluding it here prevents type-check from validating test folder
- "exclude": ["node_modules", "test"]
+ "exclude": ["**/node_modules/**", "test"]
}
diff --git a/packages/embeds/embed-snippet/tsconfig.json b/packages/embeds/embed-snippet/tsconfig.json
index b2907d92046..2444a8dde55 100644
--- a/packages/embeds/embed-snippet/tsconfig.json
+++ b/packages/embeds/embed-snippet/tsconfig.json
@@ -13,5 +13,5 @@
}
},
"include": ["."],
- "exclude": ["dist", "build", "node_modules"]
+ "exclude": ["dist", "build", "**/node_modules/**"]
}
diff --git a/packages/features/tsconfig.json b/packages/features/tsconfig.json
index 2943b44c340..cb1dca08fa2 100644
--- a/packages/features/tsconfig.json
+++ b/packages/features/tsconfig.json
@@ -9,5 +9,5 @@
"esModuleInterop": true
},
"include": [".", "../types/next-auth.d.ts", "../types/tanstack-table.d.ts"],
- "exclude": ["dist", "build", "node_modules", "**/*.test.*", "**/__mocks__/*", "**/__tests__/*"]
+ "exclude": ["dist", "build", "**/node_modules/**", "**/*.test.*", "**/__mocks__/*", "**/__tests__/*"]
}
diff --git a/packages/lib/tsconfig.json b/packages/lib/tsconfig.json
index 3e1af49b0bb..2f804071134 100644
--- a/packages/lib/tsconfig.json
+++ b/packages/lib/tsconfig.json
@@ -6,5 +6,5 @@
"resolveJsonModule": true
},
"include": [".", "../types/next-auth.d.ts", "../types/window.d.ts", "../trpc/types/router.d.ts"],
- "exclude": ["dist", "build", "node_modules"]
+ "exclude": ["dist", "build", "**/node_modules/**"]
}
diff --git a/packages/platform/atoms/tsconfig.json b/packages/platform/atoms/tsconfig.json
index f371062968b..d1ec2ea8332 100644
--- a/packages/platform/atoms/tsconfig.json
+++ b/packages/platform/atoms/tsconfig.json
@@ -45,7 +45,7 @@
"exclude": [
"dist",
"build",
- "node_modules",
+ "**/node_modules/**",
"**/*WebWrapper.tsx",
"**/*.docs.mdx",
"**/*.stories.tsx",
diff --git a/packages/platform/constants/tsconfig.json b/packages/platform/constants/tsconfig.json
index aff8a172091..129d25f1c15 100644
--- a/packages/platform/constants/tsconfig.json
+++ b/packages/platform/constants/tsconfig.json
@@ -7,5 +7,5 @@
"outDir": "./dist"
},
"include": ["."],
- "exclude": ["dist", "node_modules"]
+ "exclude": ["dist", "**/node_modules/**"]
}
diff --git a/packages/platform/enums/tsconfig.json b/packages/platform/enums/tsconfig.json
index 18374f0d193..c6e4a125526 100644
--- a/packages/platform/enums/tsconfig.json
+++ b/packages/platform/enums/tsconfig.json
@@ -8,5 +8,5 @@
"outDir": "./dist"
},
"include": ["."],
- "exclude": ["dist", "node_modules"]
+ "exclude": ["dist", "**/node_modules/**"]
}
diff --git a/packages/platform/examples/base/tsconfig.json b/packages/platform/examples/base/tsconfig.json
index cdd585164d9..566fe967339 100644
--- a/packages/platform/examples/base/tsconfig.json
+++ b/packages/platform/examples/base/tsconfig.json
@@ -19,5 +19,5 @@
"forceConsistentCasingInFileNames": true
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
- "exclude": ["node_modules"]
+ "exclude": ["**/node_modules/**"]
}
diff --git a/packages/platform/libraries/tsconfig.json b/packages/platform/libraries/tsconfig.json
index 1aa7037998f..4bedb18d6de 100644
--- a/packages/platform/libraries/tsconfig.json
+++ b/packages/platform/libraries/tsconfig.json
@@ -14,7 +14,7 @@
"exclude": [
"dist",
"build",
- "node_modules",
+ "**/node_modules/**",
"**/*.test.*",
"**/__mocks__/*",
"**/__tests__/*",
diff --git a/packages/platform/types/tsconfig.json b/packages/platform/types/tsconfig.json
index 928fcc3c344..856bd098765 100644
--- a/packages/platform/types/tsconfig.json
+++ b/packages/platform/types/tsconfig.json
@@ -8,5 +8,5 @@
"outDir": "dist"
},
"include": [".", "../../types/business-days-plugin.d.ts", "../../types/window.d.ts"],
- "exclude": ["dist", "build", "node_modules"]
+ "exclude": ["dist", "build", "**/node_modules/**"]
}
diff --git a/packages/platform/utils/tsconfig.json b/packages/platform/utils/tsconfig.json
index 2038a9108e2..ba98db2d60a 100644
--- a/packages/platform/utils/tsconfig.json
+++ b/packages/platform/utils/tsconfig.json
@@ -9,5 +9,5 @@
"experimentalDecorators": true
},
"include": [".", "./tests", "../../types/business-days-plugin.d.ts", "../../types/window.d.ts"],
- "exclude": ["dist", "build", "node_modules", "**/*.test.*", "**/__mocks__/*", "**/__tests__/*"]
+ "exclude": ["dist", "build", "**/node_modules/**", "**/*.test.*", "**/__mocks__/*", "**/__tests__/*"]
}
diff --git a/packages/types/tsconfig.json b/packages/types/tsconfig.json
index f9701e8ae84..b71c285bbbf 100644
--- a/packages/types/tsconfig.json
+++ b/packages/types/tsconfig.json
@@ -1,5 +1,5 @@
{
"extends": "@calcom/tsconfig/base.json",
"include": ["."],
- "exclude": ["dist", "build", "node_modules"]
+ "exclude": ["dist", "build", "**/node_modules/**"]
}
diff --git a/packages/ui/tsconfig.json b/packages/ui/tsconfig.json
index 389b3daa39c..cf5b665456d 100644
--- a/packages/ui/tsconfig.json
+++ b/packages/ui/tsconfig.json
@@ -11,5 +11,5 @@
"**/*.ts",
"**/*.tsx"
],
- "exclude": ["dist", "build", "node_modules"]
+ "exclude": ["dist", "build", "**/node_modules/**"]
}