You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR adds a way to migrate a repository from pnpm to Yarn. I have an
older repository I need to migrate so this will be handy.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Medium Risk**
> Modifies lockfile generation by shelling out to `pnpm` and
interpreting its tree, including optional-dependency and path handling;
incorrect parsing could produce wrong resolutions during migrations.
CI/e2e coverage is added, but behavior depends on pnpm version
differences.
>
> **Overview**
> Adds a pnpm-to-Yarn migration path that builds a Yarn `Lockfile` from
`node_modules` by invoking `pnpm list -r --json`, selecting
`--depth=Infinity` on newer pnpm versions (fallback `--depth=3`),
normalizing relative paths, and skipping missing optional dependencies.
>
> Updates the e2e sandbox image to install `pnpm`, and introduces a new
`tests/e2e/pnpm-migration.sh` that asserts the migration largely
preserves pnpm-resolved package versions after switching to `yarn
install`.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
1d9b669. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
0 commit comments