Skip to content

Commit e1def88

Browse files
perf: fix Turborepo caching for app-store CLI build (calcom#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: keith@cal.com <keithwillcode@gmail.com> * 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>
1 parent fd61c00 commit e1def88

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
],
1616
"scripts": {
1717
"app-store-cli": "yarn workspace @calcom/app-store-cli",
18-
"app-store:build": "yarn app-store-cli build",
18+
"app-store:build": "yarn turbo build --filter=@calcom/app-store-cli",
1919
"app-store:watch": "yarn app-store-cli watch",
2020
"app-store": "yarn app-store-cli cli",
2121
"create-app": "yarn app-store create",

turbo.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -467,9 +467,16 @@
467467
"outputs": ["dist/**", "build/**"]
468468
},
469469
"@calcom/app-store-cli#build": {
470-
"cache": false,
471-
"inputs": ["../../app-store/**"],
472-
"outputs": ["../../app-store/apps.server.generated.ts", "../../app-store/apps.browser.generated.tsx"]
470+
"inputs": [
471+
"../../packages/app-store/**/package.json",
472+
"../../packages/app-store/**/config.json",
473+
"../../packages/app-store/**/api/**",
474+
"../../packages/app-store/**/components/**",
475+
"../../packages/app-store/**/lib/**",
476+
"../../packages/app-store/**/pages/**",
477+
"../../packages/app-store-cli/src/**"
478+
],
479+
"outputs": ["../../packages/app-store/*.generated.ts", "../../packages/app-store/*.generated.tsx"]
473480
},
474481
"@calcom/embed-react#type-check": {
475482
"dependsOn": ["@calcom/embed-core#build", "@calcom/embed-snippet#build"],

0 commit comments

Comments
 (0)