Repository navigation
build: move the package manager config to pnpm and keep Bun's resolved versions - #300
adelrodriguez wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Caution
This migration cannot be merged independently: the existing installation and CI paths still require the removed Bun configuration.
Reviewed changes
- Package management: Moves workspace discovery, overrides, patches, and build approvals to pnpm and replaces the lockfile.
- Template commands: Removes the obsolete
bun-createcleanup and updates the lockfile reference filter.
🚨 The package manager migration is incomplete at the merge boundary
As the PR description notes, CI still runs bun install --frozen-lockfile after bun.lock is removed. Template setup also still runs bun install after modifying the workspace selection, so this commit is not a usable standalone state for scaffolded projects.
Technical details
# Complete the migration before it reaches main
## Affected sites
- `.github/workflows/adamantite.yml:54` and other workflows — installation still expects the removed Bun lockfile.
- `scripts/template/setup.ts:357` — setup still installs with Bun after workspace pruning.
- `package.json:53` and `pnpm-workspace.yaml` — package management has already moved to pnpm.
## Required outcome
- Land the follow-up package manager migration atomically with this change, so CI and scaffolded project setup work at every published merge boundary.gpt-6.1-terra | 𝕏
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 444b669. Configure here.
| electron-winstaller: true | ||
| esbuild: false | ||
| msgpackr-extract: false | ||
| protobufjs: false |
There was a problem hiding this comment.
Sentry recipe writes stale build approvals
Medium Severity
Install-script approvals moved to allowBuilds, but the Sentry recipe still writes trustedDependencies on the root package.json, which pnpm ignores. Adding Sentry to mobile still relies on @sentry/cli's install script to fetch its binary, so source-map uploads can fail after the recipe reports success.
Reviewed by Cursor Bugbot for commit 444b669. Configure here.
Move the workspace globs, overrides, the evlog patch, and exact saves from package.json and bunfig.toml to pnpm-workspace.yaml, and replace bun.lock with pnpm-lock.yaml. The lockfile was imported from Bun's resolution through a Yarn v1 lockfile, so dependency versions do not drift. A fresh resolution paired @effect/platform-node-shared 4.1.4 with effect 4.0.0 and broke Adamantite. allowBuilds records a decision for each dependency with a build script. electron-winstaller runs, because the Squirrel maker needs its 7-Zip binary. The esbuild, msgpackr-extract, and protobufjs scripts only verify prebuilt binaries or print warnings. The old trusted entries for electron, @tailwindcss/oxide, and @parcel/watcher no longer have install scripts. hoistPattern repeats pnpm's default so Electron Forge's system check accepts isolated installs until electron/forge#4188 lands. Refs #278 Co-Authored-By: Claude Opus 5.5 <[email protected]>
444b669 to
b0fa260
Compare
There was a problem hiding this comment.
Caution
The previously reported incomplete migration still prevents this PR from being merged independently.
Reviewed changes since the prior Pullfrog review:
- Updated lockfiles: Added the
@sanely/tryimporter entry to the lockfile changes.
gpt-6.1-terra | 𝕏
|
Note 🤖 Claude Opus 5.5 (on behalf of Adel Rodríguez) Closing in favor of #301. #300 can't build alone, because CI, setup, and the template recipes still call |



This is the first PR for #278. It moves the package manager configuration from Bun to pnpm and keeps every resolved dependency version. The scripts, template recipes, template commands, and CI workflows still call
bun. The next PR, stacked on this one, replaces those calls, so merge both PRs together. CI fails on this PR on its own, because the workflows still runbun install --frozen-lockfileandbun.lockis gone.What moved
workspacesinpackage.jsonpackagesinpnpm-workspace.yamloverridesinpackage.jsonoverridespatchedDependenciesinpackage.jsonpatchedDependenciestrustedDependenciesinpackage.jsonallowBuildsexact = trueinbunfig.tomlsaveExact: truelinker = "isolated"inbunfig.tomlnodeLinkerenv = falseinbunfig.toml.envfiles.bun.lockpnpm-lock.yamlbun-createinpackage.jsonpackageManageris now[email protected].bun template setupno longer deletesbun-create, andbun template doctorno longer checks for it.bun template removenow skipspnpm-lock.yamlinstead ofbun.lockwhen it lists leftover references.Lockfile
A fresh
pnpm installresolved@effect/platform-node-sharedto 4.1.4. That version needseffect@^4.1.4, but[email protected]pins[email protected], soadamantite checkcrashed withERR_MODULE_NOT_FOUND.bun.lockhad kept 4.0.0. To keep Bun's resolution, I ranbun install --yarnonmainto write a Yarn v1 lockfile, and then ranpnpm importon it.pnpm importdoesn't readbun.lockdirectly.Build scripts
pnpm blocks dependency build scripts until a project approves them, so
allowBuildsrecords a decision for each dependency that has one:electron-winstaller: true. Its install script copies the 7-Zip binary thatMakerSquirreluses for Windows builds.esbuild,msgpackr-extract, andprotobufjsare set tofalse. Their scripts only verify prebuilt binaries, which pnpm already installs as optional dependencies, or print a version warning.I dropped Bun's
electron,@tailwindcss/oxide, and@parcel/watcherentries. Electron 44 downloads its binary on first run,@tailwindcss/oxidehas no install script, and@parcel/watcherisn't in the dependency tree. Thedocsandextensionentries were Bun approvals for workspace scripts, and pnpm runs workspace scripts without approval.Electron Forge and isolated installs
electron-forge packagerefused pnpm's default isolated installs. Its system check requiresnode-linker=hoistedor an explicit hoist pattern.pnpm-workspace.yamlnow setshoistPattern: ["*"], which is pnpm's default, so the install layout stays the same. A comment links electron/forge#4188 and says to remove the setting when that issue lands. The packagedapp.asarholds 13 entries, all under.vite/pluspackage.json, with nonode_modulesentries, because the Vite plugin bundles the app.Checks
I ran these on Linux with Node 26.13.0 and pnpm 12.9.0. Bun stayed on
PATHfor the scripts that still call it.node_modules,pnpm install --frozen-lockfilepasses. It runselectron-winstallerand theapps/extensionpostinstall, and it reports no ignored builds.[email protected]has the patch applied, andreact,react-dom,sharp,@types/react, and@types/react-domresolve to their override versions.pnpm run codegenpasses all 10 tasks.pnpm run check,pnpm run analyze, andpnpm run boundariespass. knip's two configuration hints also appear onmain.pnpm testpasses all 23 tasks.pnpm template doctorpasses, includingbuild. It failed ondesktop#buildbefore thehoistPatternchange.Refs #278
🤖 Created with Claude Opus 5.5 in T3 Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Note
High Risk
This rewires how dependencies are resolved, patched, and installed across the monorepo; lockfile and CI behavior change even though versions are meant to stay aligned with the old Bun lockfile.
Overview
Moves workspace and install policy from Bun (
bunfig.toml, rootpackage.jsonworkspaces/overrides/patches/trusted deps) intopnpm-workspace.yaml, and setspackageManagerto[email protected].package.jsonno longer declares workspaces, dependency overrides,patchedDependencies,trustedDependencies, or the templatebun-createhook; those concerns live under pnpm (saveExact,overrides,patchedDependencies, andallowBuildsfor native/postinstall scripts). AhoistPattern: ["*"]entry keeps Electron Forge packaging happy with pnpm’s layout.Template maintenance scripts are adjusted for the switch:
bun template doctorstops flagging a leftoverbun-createfield,setupno longer stripsbun-createduring cleanup, andremoveignorespnpm-lock.yamlinstead ofbun.lockwhen scanning references. Root scripts and template flows still invokebunfor installs/runs; CI that expectsbun.lockis expected to fail until the follow-up PR.Reviewed by Cursor Bugbot for commit 444b669. Configure here.