Repository navigation
fix: stamp the bundle's @pnpm/napi version from the installed package - #121
Merged
Merged
Conversation
The bundle env hardcoded the version of the bundle's sole external dependency, so bumping @pnpm/napi in workspace.jsonc silently did not reach the published package: 3.1.1 was released to deliver the hoisted-layout fixes of @pnpm/napi 12.0.0-rc.8 (pnpm/pnpm#14039) but still shipped depending on rc.7. Resolve the version from the installed @pnpm/napi at build time instead, so the published dependency always matches the version the workspace was built and tested against. Verified with bit build teambit.bvm/cli/app: the capsule's package.json now stamps 12.0.0-rc.8. Co-Authored-By: Claude Fable 5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@teambit/[email protected]was released to deliver the hoisted-layout fixes of@pnpm/[email protected](#120, pnpm/pnpm#14039) — but the published package still depends on12.0.0-rc.7, so the release does not actually fix the broken bit layouts (ERR_IMPORT_ATTRIBUTE_MISSINGat bit startup).Root cause: the bundle env's
PackageJsonMutatorTaskhardcoded the version of the bundle's sole external dependency, so the #120 bump ofworkspace.jsoncnever reached the publishedpackage.json. (Theteambit.bvm/installcomponent was correctly re-tagged with rc.8 — only the bundled app's dependency stamp was stale.)This resolves the version from the installed
@pnpm/napiat build time, so the published dependency always matches what the workspace was built and tested against and can't drift again.Verified locally with
bit build teambit.bvm/cli/app: the capsule'spackage.jsonnow stamps"@pnpm/napi": "12.0.0-rc.8".After merging, a new release (3.1.2) is needed to actually ship the fixed engine.
🤖 Generated with Claude Code