Fixed extension package version replacement#1498
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
🦋 Changeset detectedLatest commit: 531a456 The changes in this PR will be included in the next version bump. This PR includes changesets to release 0 packagesWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Co-authored-by: Cursor <cursoragent@cursor.com>
|
For context: Since |
Changed Packages
Description
__VERSION__placeholder during Forge-style reactor extension builds by applying Rollup's replace plugin with the installed@adobe/alloyversion.@rollup/plugin-replacein the generated extension package dependencies so zipped packages can rebuild afternpm ci.__VERSION__.Related Issue
Related to #1495.
Motivation and Context
PR #1495 made the extension zip self-contained by vendoring
@adobe/alloyand@adobe/alloy-core, but the Forge rebuild path no longer replaced Alloy's__VERSION__token. That left rebuilt extension bundles with the placeholder string instead of the package version.This change makes the extension Rollup config mirror the browser package build behavior for version replacement.
Screenshots (if appropriate):
N/A - build and packaging change only.
Documentation
N/A - no consumer-facing documentation change.
Types of changes
Checklist:
Test plan
pnpm exec vitest run --project scripts packages/reactor-extension/scripts/extensionBuild.spec.jspnpm -C packages/reactor-extension packagepackage-adobe-alloy-2.35.0-beta.2.zip, then rannpm ciandnpm run build__VERSION__Made with Cursor