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:
@@ -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,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": "."
|
||||
|
||||
@@ -13,5 +13,5 @@
|
||||
"**/*.ts",
|
||||
"**/*.tsx"
|
||||
],
|
||||
"exclude": ["node_modules"]
|
||||
"exclude": ["**/node_modules/**"]
|
||||
}
|
||||
|
||||
@@ -34,5 +34,5 @@
|
||||
"../../packages/features/bookings/lib/getUserBooking.ts",
|
||||
"../../packages/features/Segment.tsx"
|
||||
],
|
||||
"exclude": ["node_modules", ".next"]
|
||||
"exclude": ["**/node_modules/**", ".next"]
|
||||
}
|
||||
|
||||
@@ -15,5 +15,5 @@
|
||||
"jsx": "preserve"
|
||||
},
|
||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
|
||||
"exclude": ["node_modules"]
|
||||
"exclude": ["**/node_modules/**"]
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"extends": "@calcom/tsconfig/react-library.json",
|
||||
"exclude": ["dist", "build", "node_modules"],
|
||||
"exclude": ["dist", "build", "**/node_modules/**"],
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
|
||||
@@ -10,5 +10,5 @@
|
||||
"**/*.ts",
|
||||
"**/*.tsx"
|
||||
],
|
||||
"exclude": ["dist", "build", "node_modules"]
|
||||
"exclude": ["dist", "build", "**/node_modules/**"]
|
||||
}
|
||||
|
||||
@@ -13,5 +13,5 @@
|
||||
}
|
||||
},
|
||||
"include": ["src", "env.d.ts", "index.ts", "*.ts"],
|
||||
"exclude": ["dist", "build", "node_modules"]
|
||||
"exclude": ["dist", "build", "**/node_modules/**"]
|
||||
}
|
||||
|
||||
@@ -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"]
|
||||
}
|
||||
|
||||
@@ -13,5 +13,5 @@
|
||||
}
|
||||
},
|
||||
"include": ["."],
|
||||
"exclude": ["dist", "build", "node_modules"]
|
||||
"exclude": ["dist", "build", "**/node_modules/**"]
|
||||
}
|
||||
|
||||
@@ -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__/*"]
|
||||
}
|
||||
|
||||
@@ -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/**"]
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
"exclude": [
|
||||
"dist",
|
||||
"build",
|
||||
"node_modules",
|
||||
"**/node_modules/**",
|
||||
"**/*WebWrapper.tsx",
|
||||
"**/*.docs.mdx",
|
||||
"**/*.stories.tsx",
|
||||
|
||||
@@ -7,5 +7,5 @@
|
||||
"outDir": "./dist"
|
||||
},
|
||||
"include": ["."],
|
||||
"exclude": ["dist", "node_modules"]
|
||||
"exclude": ["dist", "**/node_modules/**"]
|
||||
}
|
||||
|
||||
@@ -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/**"]
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
"exclude": [
|
||||
"dist",
|
||||
"build",
|
||||
"node_modules",
|
||||
"**/node_modules/**",
|
||||
"**/*.test.*",
|
||||
"**/__mocks__/*",
|
||||
"**/__tests__/*",
|
||||
|
||||
@@ -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/**"]
|
||||
}
|
||||
|
||||
@@ -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,5 +1,5 @@
|
||||
{
|
||||
"extends": "@calcom/tsconfig/base.json",
|
||||
"include": ["."],
|
||||
"exclude": ["dist", "build", "node_modules"]
|
||||
"exclude": ["dist", "build", "**/node_modules/**"]
|
||||
}
|
||||
|
||||
@@ -11,5 +11,5 @@
|
||||
"**/*.ts",
|
||||
"**/*.tsx"
|
||||
],
|
||||
"exclude": ["dist", "build", "node_modules"]
|
||||
"exclude": ["dist", "build", "**/node_modules/**"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user