chore(repo): bump workspace-plugin version and fix freebsd release#35894
Merged
Conversation
tools/workspace-plugin pinned @nx/js and @nx/devkit at beta.4 (old layout, no exports map) while the repo is on beta.22. As type:module under Node >=22.18 native strip, its .ts plugin loads as ESM and cannot resolve the extensionless @nx/js/src/utils/assets/copy-assets-handler import. This surfaced on FreeBSD CI (pkg node is >=22.18). Bumping to beta.22 restores the exports map so the import resolves to dist.
…SION
Derive the unofficial-builds musl node download from ${NODE_VERSION} (already forwarded into the container via -e NODE_VERSION) so the URL cannot drift from NODE_VERSION on future bumps.
✅ Deploy Preview for nx-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for nx-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
|
View your CI Pipeline Execution ↗ for commit d3f4b54
☁️ Nx Cloud last updated this comment at |
AgentEnder
approved these changes
Jun 5, 2026
vrxj81
pushed a commit
to vrxj81/nx
that referenced
this pull request
Jun 7, 2026
…rwl#35894) ## Current Behavior The publish workflow's FreeBSD build fails computing the project graph: `Failed to load 1 Nx plugin(s) … Cannot find module @nx/js/src/utils/assets/copy-assets-handler`. `tools/workspace-plugin` pins `@nx/js`/`@nx/devkit` at `23.0.0-beta.4` (pre-dist-build layout: `src` sources, no exports map) while the repo is on `beta.22`. The plugin is `type: module`, so under Node ≥ 22.18 (native TS strip) its `.ts` loads as ESM, which can't resolve the extensionless `@nx/js/src/...` import against an exports-less package. FreeBSD CI was the first env with a ≥ 22.18 Node (`pkg install node` → node24). The alpine/musl Node download URL also hardcoded the version, drifting from `NODE_VERSION`. ## Expected Behavior `workspace-plugin` resolves `@nx/js` through the beta.22 exports map (to `dist`), so the plugin loads under native-strip ESM on any Node — FreeBSD included. CI Node is bumped to 26.3.0 and the musl download is derived from `${NODE_VERSION}` so it can't drift again. ## Related Issue(s) N/A — CI fix.
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.
Current Behavior
The publish workflow's FreeBSD build fails computing the project graph:
Failed to load 1 Nx plugin(s) … Cannot find module @nx/js/src/utils/assets/copy-assets-handler.tools/workspace-pluginpins@nx/js/@nx/devkitat23.0.0-beta.4(pre-dist-buildlayout:
srcsources, no exports map) while the repo is onbeta.22. The plugin istype: module, so under Node ≥ 22.18 (native TS strip) its.tsloads as ESM, whichcan't resolve the extensionless
@nx/js/src/...import against an exports-less package.FreeBSD CI was the first env with a ≥ 22.18 Node (
pkg install node→ node24).The alpine/musl Node download URL also hardcoded the version, drifting from
NODE_VERSION.Expected Behavior
workspace-pluginresolves@nx/jsthrough the beta.22 exports map (todist), so theplugin loads under native-strip ESM on any Node — FreeBSD included. CI Node is bumped to
26.3.0 and the musl download is derived from
${NODE_VERSION}so it can't drift again.Related Issue(s)
N/A — CI fix.