Skip to content

Scheduling infrastructure for absolutely everyone.

perf: make nested packages independent for better type-check performance (#27219)

Volnei Munhoz6e1070be3174
diff --git a/packages/app-store/tsconfig.json b/packages/app-store/tsconfig.json
index 9f5aa21d2f4..4c69563dde1 100644
--- a/packages/app-store/tsconfig.json
+++ b/packages/app-store/tsconfig.json
@@ -15,7 +15,19 @@
"@calcom/types",
"../types/*.d.ts",
"../types/next-auth.d.ts",
- "**/*.ts",
- "**/*.tsx"
+ "*.ts",
+ "*.tsx",
+ "_components/**/*.ts",
+ "_components/**/*.tsx",
+ "_lib/**/*.ts",
+ "_lib/**/*.tsx",
+ "_pages/**/*.ts",
+ "_pages/**/*.tsx",
+ "_utils/**/*.ts",
+ "_utils/**/*.tsx",
+ "templates/**/*.ts",
+ "templates/**/*.tsx",
+ "tests/**/*.ts",
+ "tests/**/*.tsx"
]
}
diff --git a/packages/features/auth/tsconfig.json b/packages/features/auth/tsconfig.json
new file mode 100644
index 00000000000..a39140d6b56
--- /dev/null
+++ b/packages/features/auth/tsconfig.json
@@ -0,0 +1,19 @@
+{
+ "extends": "@calcom/tsconfig/react-library.json",
+ "compilerOptions": {
+ "module": "esnext",
+ "moduleResolution": "bundler",
+ "baseUrl": ".",
+ "resolveJsonModule": true,
+ "esModuleInterop": true,
+ "experimentalDecorators": true
+ },
+ "include": [
+ ".",
+ "../../types/next-auth.d.ts",
+ "../../types/tanstack-table.d.ts",
+ "../../types/business-days-plugin.d.ts",
+ "../../types/window.d.ts"
+ ],
+ "exclude": ["dist", "build", "**/node_modules/**", "**/*.test.*", "**/__mocks__/*", "**/__tests__/*"]
+}
diff --git a/packages/features/ee/billing/tsconfig.json b/packages/features/ee/billing/tsconfig.json
new file mode 100644
index 00000000000..b5a51b47aa1
--- /dev/null
+++ b/packages/features/ee/billing/tsconfig.json
@@ -0,0 +1,19 @@
+{
+ "extends": "@calcom/tsconfig/react-library.json",
+ "compilerOptions": {
+ "module": "esnext",
+ "moduleResolution": "bundler",
+ "baseUrl": ".",
+ "resolveJsonModule": true,
+ "esModuleInterop": true,
+ "experimentalDecorators": true
+ },
+ "include": [
+ ".",
+ "../../../types/next-auth.d.ts",
+ "../../../types/tanstack-table.d.ts",
+ "../../../types/business-days-plugin.d.ts",
+ "../../../types/window.d.ts"
+ ],
+ "exclude": ["dist", "build", "**/node_modules/**", "**/*.test.*", "**/__mocks__/*", "**/__tests__/*"]
+}
diff --git a/packages/features/ee/tsconfig.json b/packages/features/ee/tsconfig.json
new file mode 100644
index 00000000000..68f3705dfe4
--- /dev/null
+++ b/packages/features/ee/tsconfig.json
@@ -0,0 +1,19 @@
+{
+ "extends": "@calcom/tsconfig/react-library.json",
+ "compilerOptions": {
+ "module": "esnext",
+ "moduleResolution": "bundler",
+ "baseUrl": ".",
+ "resolveJsonModule": true,
+ "esModuleInterop": true,
+ "experimentalDecorators": true
+ },
+ "include": [
+ ".",
+ "../../types/next-auth.d.ts",
+ "../../types/tanstack-table.d.ts",
+ "../../types/business-days-plugin.d.ts",
+ "../../types/window.d.ts"
+ ],
+ "exclude": ["dist", "build", "**/node_modules/**", "**/*.test.*", "**/__mocks__/*", "**/__tests__/*", "billing"]
+}
diff --git a/packages/features/tsconfig.json b/packages/features/tsconfig.json
index 9d9612e3d8f..4e47ac78f17 100644
--- a/packages/features/tsconfig.json
+++ b/packages/features/tsconfig.json
@@ -12,5 +12,5 @@
"experimentalDecorators": 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__/*", "auth", "ee"]
}