perf: optimize analytics app imports to avoid loading entire app store (#23372)

* perf: optimize analytics app imports to avoid loading entire app store

- Add analytics service generation to app-store-cli build process
- Generate analytics.services.generated.ts with only analytics apps (dub)
- Update getAnalytics.ts to use AnalyticsServiceMap instead of full appStore
- Add NEXT_PUBLIC_IS_E2E to turbo.json globalEnv for generated files
- Reduces import footprint from 100+ apps to only analytics apps with AnalyticsService
- Follows same pattern as calendar services optimization from PR #22450

Co-Authored-By: [email protected] <[email protected]>

* Reorder cli output

* fix: follow getCalendar pattern in getAnalytics and maintain alphabetical order in turbo.json

- Remove unnecessary object wrapping in getAnalytics.ts to match getCalendar.ts pattern
- Move NEXT_PUBLIC_IS_E2E to correct alphabetical position in turbo.json globalEnv
- Address PR feedback from keithwillcode

Co-Authored-By: [email protected] <[email protected]>

* chore: update yarn.lock after analytics optimization changes

Co-Authored-By: [email protected] <[email protected]>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Keith WilliamsandDevin AI authored and GitHub committed 2025-08-26 18:57:38 -03:00
1 parent 6d1fe32a39
commit 520e711ca6
5 files changed
+82 -24

No files matched your search

+26
View File
@@ -3066,6 +3066,32 @@ __metadata:
languageName: unknown
linkType: soft
"@calcom/exchange2013calendar@workspace:packages/app-store/exchange2013calendar":
version: 0.0.0-use.local
resolution: "@calcom/exchange2013calendar@workspace:packages/app-store/exchange2013calendar"
dependencies:
"@calcom/lib": "*"
"@calcom/prisma": "*"
"@calcom/types": "*"
"@calcom/ui": "*"
ews-javascript-api: ^0.11.0
react-hook-form: ^7.43.3
languageName: unknown
linkType: soft
"@calcom/exchange2016calendar@workspace:packages/app-store/exchange2016calendar":
version: 0.0.0-use.local
resolution: "@calcom/exchange2016calendar@workspace:packages/app-store/exchange2016calendar"
dependencies:
"@calcom/lib": "*"
"@calcom/prisma": "*"
"@calcom/types": "*"
"@calcom/ui": "*"
ews-javascript-api: ^0.11.0
react-hook-form: ^7.43.3
languageName: unknown
linkType: soft
"@calcom/exchangecalendar@workspace:packages/app-store/exchangecalendar":
version: 0.0.0-use.local
resolution: "@calcom/exchangecalendar@workspace:packages/app-store/exchangecalendar"