Skip to content

chore(deps): update pnpm to v12 - #23410

Merged
sapphi-red merged 1 commit into
mainfrom
chore/deps-update-pnpm-to-v12
Sep 1, 2026
Merged

sapphi-red merged 1 commit into
mainfrom
chore/deps-update-pnpm-to-v12

Conversation

@sapphi-red

Copy link
Copy Markdown
Member

While pnpm v11 doesn't support Node 20, it seems v12 supports it
https://pnpm.io/installation#compatibility

@sapphi-red sapphi-red added dependencies Pull requests that update a dependency file p1-chore Doesn't change code behavior (priority) labels Sep 1, 2026
Comment thread pnpm-workspace.yaml
autoInstallPeers: false
dedupeInjectedDeps: false
overrides:
rolldown: $rolldown

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably we don't need this anymore as Rolldown is stable now
#20919

Comment thread pnpm-workspace.yaml
Comment on lines -50 to -54
minimumReleaseAge: 1440
minimumReleaseAgeExclude:
- rolldown
- '@rolldown/binding-*'
blockExoticSubdeps: true

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are the default values.

@btea btea left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pnpm 12 is no longer restricted by nodes.

@sapphi-red
sapphi-red merged commit 5a38afe into main Sep 1, 2026
41 of 42 checks passed
@sapphi-red
sapphi-red deleted the chore/deps-update-pnpm-to-v12 branch September 1, 2026 08:18
shulaoda pushed a commit to rolldown/rolldown that referenced this pull request Oct 7, 2026
…#11147)

## What

`packages/vite-tests/run.ts` clones the `vite/` checkout and rewrites
its `pnpm-workspace.yaml` so the `rolldown` override points at the
workspace `packages/rolldown`. The rewrite was a regex on a `rolldown:
$rolldown` line that Vite stopped carrying when it moved to pnpm 12
(vitejs/vite#23410). Since then the regex matched nothing and the clone
installed the npm release from Vite's lockfile, so the `Vite Test
Ubuntu` / `Vite Test Windows` jobs tested that release instead of the
pull request's build.

Evidence from the job logs, `pnpm install` step: `+ rolldown 1.2.12` on
main (run 37631615554, job 112842609493) and on a pull request (run
37653001783, job 112902019970).

## Fix

- The runner writes the override itself: `rolldown: "link:<absolute
workspace path>"` under `overrides:` (replacing an existing `rolldown`
entry, inserting one, or creating the block). The value is a JSON
string, so a Windows path survives as a YAML double-quoted scalar.
- After `pnpm install` it resolves `rolldown/package.json` from
`repo/packages/vite`, compares the real path with
`packages/rolldown/package.json`, and exits 1 with both paths when they
differ. On success it prints the resolved version and path so the job
log shows which build ran.

## Verification

Full runner locally on this branch with the workspace build linked:

| Step | Result |
|---|---|
| `pnpm install` in the clone | `+ rolldown link:../../rolldown`, no
registry `rolldown` |
| check line | `vite resolves rolldown 1.2.13 at
<worktree>/packages/rolldown/package.json` |
| `vite` build | `rolldown v1.2.13` |
| test-unit | 70 files, 1012 passed |
| test-serve | 1 failed, 91 passed, 17 skipped (the failed spec passed 3
of 3 when run alone) |
| test-serve-bundled | 82 passed, 22 skipped |
| test-build | 93 passed, 15 skipped |

The one `test-serve` failure was `environment-react-ssr > pre-bundling >
deps reload` timing out under load.

Once this lands the Vite lanes exercise the pull request's rolldown
again, so playground drift that was hidden since September may surface
there.

Windows: pnpm normalizes a `link:` path with a drive letter
(`local-spec` `normalize_specifier`, `resolving-local-resolver`
`is_absolute_specifier`); the new check fails the job if the resolution
is wrong.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01T34fMrYCf2V13Mg8BKmnda

---------

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file p1-chore Doesn't change code behavior (priority)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants