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

* chore: TS config - ignore node_modules in subdirectories

* Update tsconfig.json

* Applied the pattern to the entire monorepo
This commit is contained in:
Keith Williams
2025-03-03 15:53:28 -03:00
committed by GitHub
parent efd427831d
commit 7701edb0bb
21 changed files with 21 additions and 21 deletions
+1 -1
View File
@@ -18,5 +18,5 @@
"../../../packages/types/*.d.ts",
"../../../packages/types/next-auth.d.ts"
],
"exclude": ["node_modules", "templates", "auth"]
"exclude": ["**/node_modules/**", "templates", "auth"]
}
+1 -1
View File
@@ -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": "."
+1 -1
View File
@@ -13,5 +13,5 @@
"**/*.ts",
"**/*.tsx"
],
"exclude": ["node_modules"]
"exclude": ["**/node_modules/**"]
}
+1 -1
View File
@@ -34,5 +34,5 @@
"../../packages/features/bookings/lib/getUserBooking.ts",
"../../packages/features/Segment.tsx"
],
"exclude": ["node_modules", ".next"]
"exclude": ["**/node_modules/**", ".next"]
}
+1 -1
View File
@@ -15,5 +15,5 @@
"jsx": "preserve"
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
"exclude": ["**/node_modules/**"]
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"extends": "@calcom/tsconfig/react-library.json",
"exclude": ["dist", "build", "node_modules"],
"exclude": ["dist", "build", "**/node_modules/**"],
"compilerOptions": {
"baseUrl": ".",
"paths": {
+1 -1
View File
@@ -10,5 +10,5 @@
"**/*.ts",
"**/*.tsx"
],
"exclude": ["dist", "build", "node_modules"]
"exclude": ["dist", "build", "**/node_modules/**"]
}
+1 -1
View File
@@ -13,5 +13,5 @@
}
},
"include": ["src", "env.d.ts", "index.ts", "*.ts"],
"exclude": ["dist", "build", "node_modules"]
"exclude": ["dist", "build", "**/node_modules/**"]
}
+1 -1
View File
@@ -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"]
}
+1 -1
View File
@@ -13,5 +13,5 @@
}
},
"include": ["."],
"exclude": ["dist", "build", "node_modules"]
"exclude": ["dist", "build", "**/node_modules/**"]
}
+1 -1
View File
@@ -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__/*"]
}
+1 -1
View File
@@ -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/**"]
}
+1 -1
View File
@@ -45,7 +45,7 @@
"exclude": [
"dist",
"build",
"node_modules",
"**/node_modules/**",
"**/*WebWrapper.tsx",
"**/*.docs.mdx",
"**/*.stories.tsx",
+1 -1
View File
@@ -7,5 +7,5 @@
"outDir": "./dist"
},
"include": ["."],
"exclude": ["dist", "node_modules"]
"exclude": ["dist", "**/node_modules/**"]
}
+1 -1
View File
@@ -8,5 +8,5 @@
"outDir": "./dist"
},
"include": ["."],
"exclude": ["dist", "node_modules"]
"exclude": ["dist", "**/node_modules/**"]
}
@@ -19,5 +19,5 @@
"forceConsistentCasingInFileNames": true
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
"exclude": ["**/node_modules/**"]
}
+1 -1
View File
@@ -14,7 +14,7 @@
"exclude": [
"dist",
"build",
"node_modules",
"**/node_modules/**",
"**/*.test.*",
"**/__mocks__/*",
"**/__tests__/*",
+1 -1
View File
@@ -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/**"]
}
+1 -1
View File
@@ -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__/*"]
}
+1 -1
View File
@@ -1,5 +1,5 @@
{
"extends": "@calcom/tsconfig/base.json",
"include": ["."],
"exclude": ["dist", "build", "node_modules"]
"exclude": ["dist", "build", "**/node_modules/**"]
}
+1 -1
View File
@@ -11,5 +11,5 @@
"**/*.ts",
"**/*.tsx"
],
"exclude": ["dist", "build", "node_modules"]
"exclude": ["dist", "build", "**/node_modules/**"]
}