bud icon indicating copy to clipboard operation
bud copied to clipboard

[repo] can't upgrade to @yarnpkg/builder@^4.0.0

Open kellymears opened this issue 2 years ago • 3 comments

Agreement

Describe the issue

Repo cli (@bud) is a yarn plugin but the build fails using version 4.0.0 of @yarnpkg/builder.

Expected Behavior

After installing @yarnpkg/[email protected] running yarn install will build the @bud cli

Actual Behavior

The @bud cli build process fails.

Steps To Reproduce

  1. Run yarn upgrade-interactive.
  2. Select @yarnpkg/builder (4.0.0-rc-46 -> 4.0.0)

version

0.0.0

Logs

Usage Error: This plugin cannot access the package referenced via node:fs which is neither a builtin, nor an exposed entry (when initializing @yarnpkg/plugin-bud, defined in /Users/kellymears/code/git/roots/bud/.yarnrc.yml)

Configuration

No response

Relevant .budfiles

No response

kellymears avatar Aug 17 '23 15:08 kellymears

If I replace the node:* with the non namespaced equivalents manually, it works. I think @yarnpkg/builder might need to include node:* as externals.

kellymears avatar Aug 17 '23 17:08 kellymears

I patched it with an esbuild plugin, which should do for now.

kellymears avatar Aug 18 '23 05:08 kellymears

Updated the patch in #2527

kellymears avatar Dec 17 '23 07:12 kellymears