perf: fix Turborepo caching for app-store CLI build (#23515)
* feat: fix Turborepo caching for app-store CLI build - Fix incorrect output paths from app-store/ to packages/app-store/ - Fix incorrect input paths to match actual file locations - Remove cache: false to enable caching - Add all 11 generated files to outputs array - Add NEXT_PUBLIC_IS_E2E env var for proper cache invalidation - Add specific input patterns to avoid cache invalidation from generated files - Improves local dev experience with cache hits vs ~3.1s cache misses Performance improvement: builds go from ~3.1 seconds (cache miss) to instant cache hits when inputs haven't changed. Co-Authored-By: [email protected] <[email protected]> * Use new turbo command so it uses cache * Made the output more flexible * Added back a .tsx output * fixed file path * Removed global IS_E2E var that Devin added --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
fd61c00ad1
commit
e1def884f3
2 files changed
+11
-4
No files matched your search
+10
-3
@@ -467,9 +467,16 @@
|
||||
"outputs": ["dist/**", "build/**"]
|
||||
},
|
||||
"@calcom/app-store-cli#build": {
|
||||
"cache": false,
|
||||
"inputs": ["../../app-store/**"],
|
||||
"outputs": ["../../app-store/apps.server.generated.ts", "../../app-store/apps.browser.generated.tsx"]
|
||||
"inputs": [
|
||||
"../../packages/app-store/**/package.json",
|
||||
"../../packages/app-store/**/config.json",
|
||||
"../../packages/app-store/**/api/**",
|
||||
"../../packages/app-store/**/components/**",
|
||||
"../../packages/app-store/**/lib/**",
|
||||
"../../packages/app-store/**/pages/**",
|
||||
"../../packages/app-store-cli/src/**"
|
||||
],
|
||||
"outputs": ["../../packages/app-store/*.generated.ts", "../../packages/app-store/*.generated.tsx"]
|
||||
},
|
||||
"@calcom/embed-react#type-check": {
|
||||
"dependsOn": ["@calcom/embed-core#build", "@calcom/embed-snippet#build"],
|
||||
|
||||
Reference in new issue
Block a user