Skip to content

fix: stamp the bundle's @pnpm/napi version from the installed package - #121

Merged
zkochan merged 1 commit into
mainfrom
bundle-napi-version-from-workspace
Aug 20, 2026
Merged

zkochan merged 1 commit into
mainfrom
bundle-napi-version-from-workspace

Conversation

@zkochan

@zkochan zkochan commented Aug 20, 2026

Copy link
Copy Markdown
Member

@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 on 12.0.0-rc.7, so the release does not actually fix the broken bit layouts (ERR_IMPORT_ATTRIBUTE_MISSING at bit startup).

Root cause: the bundle env's PackageJsonMutatorTask hardcoded the version of the bundle's sole external dependency, so the #120 bump of workspace.jsonc never reached the published package.json. (The teambit.bvm/install component was correctly re-tagged with rc.8 — only the bundled app's dependency stamp was stale.)

This resolves the version from the installed @pnpm/napi at 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's package.json now 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

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]>
@zkochan
zkochan merged commit 32e6575 into main Aug 20, 2026
@zkochan
zkochan deleted the bundle-napi-version-from-workspace branch August 20, 2026 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant