Skip to content

Commit 7701edb

Browse files
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
1 parent efd4278 commit 7701edb

File tree

21 files changed

+21
-21
lines changed

21 files changed

+21
-21
lines changed

apps/api/v1/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
"../../../packages/types/*.d.ts",
1919
"../../../packages/types/next-auth.d.ts"
2020
],
21-
"exclude": ["node_modules", "templates", "auth"]
21+
"exclude": ["**/node_modules/**", "templates", "auth"]
2222
}

apps/storybook/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": "@calcom/tsconfig/nextjs.json",
33
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
4-
"exclude": ["node_modules"],
4+
"exclude": ["**/node_modules/**"],
55
"compilerOptions": {
66
"noImplicitAny": false,
77
"baseUrl": "."

apps/swagger/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
"**/*.ts",
1414
"**/*.tsx"
1515
],
16-
"exclude": ["node_modules"]
16+
"exclude": ["**/node_modules/**"]
1717
}

apps/web/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@
3434
"../../packages/features/bookings/lib/getUserBooking.ts",
3535
"../../packages/features/Segment.tsx"
3636
],
37-
"exclude": ["node_modules", ".next"]
37+
"exclude": ["**/node_modules/**", ".next"]
3838
}

example-apps/credential-sync/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
"jsx": "preserve"
1616
},
1717
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
18-
"exclude": ["node_modules"]
18+
"exclude": ["**/node_modules/**"]
1919
}

packages/app-store/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"extends": "@calcom/tsconfig/react-library.json",
3-
"exclude": ["dist", "build", "node_modules"],
3+
"exclude": ["dist", "build", "**/node_modules/**"],
44
"compilerOptions": {
55
"baseUrl": ".",
66
"paths": {

packages/debugging/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
"**/*.ts",
1111
"**/*.tsx"
1212
],
13-
"exclude": ["dist", "build", "node_modules"]
13+
"exclude": ["dist", "build", "**/node_modules/**"]
1414
}

packages/embeds/embed-core/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
}
1414
},
1515
"include": ["src", "env.d.ts", "index.ts", "*.ts"],
16-
"exclude": ["dist", "build", "node_modules"]
16+
"exclude": ["dist", "build", "**/node_modules/**"]
1717
}

packages/embeds/embed-react/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
},
1616
"include": ["src/**/*.ts", "src/**/*.tsx", "env.d.ts", "*.tsx", "*.ts"],
1717
// 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
18-
"exclude": ["node_modules", "test"]
18+
"exclude": ["**/node_modules/**", "test"]
1919
}

packages/embeds/embed-snippet/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
}
1414
},
1515
"include": ["."],
16-
"exclude": ["dist", "build", "node_modules"]
16+
"exclude": ["dist", "build", "**/node_modules/**"]
1717
}

packages/features/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
"esModuleInterop": true
1010
},
1111
"include": [".", "../types/next-auth.d.ts", "../types/tanstack-table.d.ts"],
12-
"exclude": ["dist", "build", "node_modules", "**/*.test.*", "**/__mocks__/*", "**/__tests__/*"]
12+
"exclude": ["dist", "build", "**/node_modules/**", "**/*.test.*", "**/__mocks__/*", "**/__tests__/*"]
1313
}

packages/lib/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
"resolveJsonModule": true
77
},
88
"include": [".", "../types/next-auth.d.ts", "../types/window.d.ts", "../trpc/types/router.d.ts"],
9-
"exclude": ["dist", "build", "node_modules"]
9+
"exclude": ["dist", "build", "**/node_modules/**"]
1010
}

packages/platform/atoms/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"exclude": [
4646
"dist",
4747
"build",
48-
"node_modules",
48+
"**/node_modules/**",
4949
"**/*WebWrapper.tsx",
5050
"**/*.docs.mdx",
5151
"**/*.stories.tsx",

packages/platform/constants/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
"outDir": "./dist"
88
},
99
"include": ["."],
10-
"exclude": ["dist", "node_modules"]
10+
"exclude": ["dist", "**/node_modules/**"]
1111
}

packages/platform/enums/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
"outDir": "./dist"
99
},
1010
"include": ["."],
11-
"exclude": ["dist", "node_modules"]
11+
"exclude": ["dist", "**/node_modules/**"]
1212
}

packages/platform/examples/base/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
"forceConsistentCasingInFileNames": true
2020
},
2121
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
22-
"exclude": ["node_modules"]
22+
"exclude": ["**/node_modules/**"]
2323
}

packages/platform/libraries/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"exclude": [
1515
"dist",
1616
"build",
17-
"node_modules",
17+
"**/node_modules/**",
1818
"**/*.test.*",
1919
"**/__mocks__/*",
2020
"**/__tests__/*",

packages/platform/types/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
"outDir": "dist"
99
},
1010
"include": [".", "../../types/business-days-plugin.d.ts", "../../types/window.d.ts"],
11-
"exclude": ["dist", "build", "node_modules"]
11+
"exclude": ["dist", "build", "**/node_modules/**"]
1212
}

packages/platform/utils/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
"experimentalDecorators": true
1010
},
1111
"include": [".", "./tests", "../../types/business-days-plugin.d.ts", "../../types/window.d.ts"],
12-
"exclude": ["dist", "build", "node_modules", "**/*.test.*", "**/__mocks__/*", "**/__tests__/*"]
12+
"exclude": ["dist", "build", "**/node_modules/**", "**/*.test.*", "**/__mocks__/*", "**/__tests__/*"]
1313
}

packages/types/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"extends": "@calcom/tsconfig/base.json",
33
"include": ["."],
4-
"exclude": ["dist", "build", "node_modules"]
4+
"exclude": ["dist", "build", "**/node_modules/**"]
55
}

packages/ui/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
"**/*.ts",
1212
"**/*.tsx"
1313
],
14-
"exclude": ["dist", "build", "node_modules"]
14+
"exclude": ["dist", "build", "**/node_modules/**"]
1515
}

0 commit comments

Comments
 (0)