Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Bump the pinned package manager from [email protected] to [email protected] and adapt config to pnpm 11's breaking changes: - pnpm 11 no longer reads the "pnpm" field in package.json, so move overrides and peerDependencyRules into pnpm-workspace.yaml. - Remove .pnpmrc: pnpm 11 does not read it (and pnpm never did). Its node-linker=hoisted setting was therefore inert — the repo builds and the ESM (.mjs) tests pass on pnpm's default (isolated) linker — and its onnxruntime-node-install=skip setting is moot since onnxruntime-node is stubbed via an override. - Replace the deprecated "$yjs" override reference with a catalog entry and catalog: reference to silence the pnpm 11 deprecation warning. - Declare dependency build scripts as disabled (allowBuilds) to preserve the pre-migration behavior where no build scripts were approved. - Bump engines.pnpm to >=11.0.0 and update the maintainers' guide. pnpm-lock.yaml is unchanged (no dependency resolution drift). Verified against a clean --frozen-lockfile install: ci-check (tsc/flow/prettier/ lint), test-unit (4610 passed), and build all pass under pnpm 11.10.0.
Deploy note: enable Corepack on the Vercel projectsThe Vercel checks fail until Corepack is enabled, because Vercel defaults to pnpm 9.x (it infers the version from Relaxing Fix (one-time, per project): on the |
…n to pnpm 11.24.0 ## Description Follow-up to "Upgrade to pnpm 11" (c186b36), which moved `overrides`, `peerDependencyRules` and `allowBuilds` into `pnpm-workspace.yaml` and dropped the inert `.pnpmrc`. Three npm-era leftovers in `package.json` survived that pass, all of them configuration that nothing reads: - `workspaces` — an npm/yarn field. pnpm takes the workspace layout from `pnpm-workspace.yaml#packages`, which is the one that excludes `examples/**` and the integration fixtures; the npm field lists neither, so the two disagree and only the yaml one is in effect. - `engineStrict` — pnpm reads `engineStrict` from `pnpm-workspace.yaml`, not from the manifest, so the `engines.node`/`engines.pnpm` constraints right above it have never actually been enforced. Moving it makes an install on an unsupported Node fail instead of warn. - `npx` in the `capture-gallery-screenshots` and `collab` scripts, which resolves through npm and ignores this repo's pnpm settings (registry, `minimumReleaseAge`). They become `pnpm dlx` and `pnpm exec`; `y-websocket` is already a devDependency, so `pnpm exec` runs the installed copy instead of fetching one. The pin also moves from `[email protected]` to `[email protected]`, which is what the registry currently serves as `latest`. pnpm 12 was evaluated and is not usable here yet. 12.0.0 and 12.1.0 are published under the `next-12` dist-tag with no `latest-12` (`latest` is 11.24.0), they are 4 and 1 days old against this repo's own 7-day `minimumReleaseAge`, and pinning 12.1.0 breaks every nested `pnpm` call made from a package script: pnpm 12 installs its pinned self as a `packageManagerDependency`, that install does not run the wrapper's preinstall script, and the placeholder left behind is what lands on `PATH` for child processes. `pnpm run ci-check` dies at once with ``` /root/.local/share/pnpm/.tools/pnpm/12.1.0/bin/pnpm: 4: Syntax error: ")" unexpected ERROR: "tsc-website" exited with 2. ``` and neither `allowBuilds: {pnpm: true}` nor a forced reinstall fixes it. Contributors already running pnpm 12 are unaffected by this pin: pnpm 12 switches down to 11.24.0 (via `@pnpm/exe`, which needs no build script). `pnpm-lock.yaml` is unchanged. ## Test plan ### Before `package.json#engineStrict` and `package.json#workspaces` are invisible to pnpm — `pnpm config list` at c186b36 reports no `engineStrict` at all, and the `packages` it resolves come from the yaml: ``` $ pnpm config list | grep -i engine (no output) $ pnpm config list | grep -A5 '"packages"' "packages": [ "packages/*", "dev-examples/*", "!examples/**/*", "!scripts/__tests__/integration/fixtures/**/*" ], ``` With `engines.node` set to `>=99.0.0`, an install only warns: ``` [WARN] Unsupported engine: wanted: {"node":">=99.0.0"} (current: {"node":"v22.22.2","pnpm":"11.24.0"}) Done in 1.5s using pnpm v11.24.0 ``` ### After `engineStrict` is now read, and the same unsatisfiable engine fails the install: ``` $ pnpm config list | grep -i engine "engineStrict": true, $ pnpm install Expected version: >=99.0.0 Got: v22.22.2 This is happening because the package's manifest has an engines.node field specified. To fix this issue, install the required Node version. ``` Clean `node_modules`, pnpm 11.24.0, Node v22.22.2: ``` $ pnpm install --frozen-lockfile Done in 58.4s using pnpm v11.24.0 install exit=0 $ git diff --stat pnpm-lock.yaml (no output) ``` ``` $ pnpm run ci-check $ tsc -p ./tsconfig.scripts.json $ prettier --list-different . $ eslint ./ $ tsc --noEmit $ tsc -p tsconfig.json No errors! ci-check exit=0 $ pnpm run test-unit Test Files 216 passed (216) Tests 4580 passed | 1 skipped (4581) Duration 138.29s test-unit exit=0 $ pnpm run build build exit=0 ``` E2E, browser and integration suites were not run in this environment. Co-Authored-By: Claude <[email protected]>
…onorepo with pnpm, not npm
## Description
Three docs still tell the reader to build this repository with npm, which has
not worked since the pnpm migration: the workspace manifests declare
`workspace:*` dependencies, a protocol npm does not understand, and the root
manifest no longer carries an npm `workspaces` field at all.
- `packages/lexical-devtools/SOURCE_CODE_REVIEW.md` — the instructions an
extension-store reviewer follows to build the extension from source.
- `packages/lexical-devtools/README.md` — local development, Safari archive
and upload commands.
- `packages/lexical-website/docs/collaboration/react.md` — the tip for
running the playground in collaborative mode.
Each npm invocation becomes its pnpm equivalent; the script names are
unchanged and all exist in `packages/lexical-devtools/package.json`. The
`npm i -S @lexical/react ...` line in the collaboration guide is left alone:
that one installs published packages into the reader's own project.
## Test plan
Documentation only. The commands were checked against the scripts they name,
and against the dependency protocol npm cannot resolve:
```
$ node -e "console.log(Object.keys(require('./packages/lexical-devtools/package.json').scripts).join(' '))"
dev dev:firefox dev:edge dev:safari safari:convert safari:archive safari:upload build build:chrome build:firefox build:edge build:safari zip zip:chrome zip:firefox zip:edge publish bundle-analyzer:open compile postinstall
$ grep -l '"workspace:' packages/*/package.json | wc -l
33
```
Co-Authored-By: Claude <[email protected]>
## Description `main` has moved 152 commits since this branch's base, and `package.json` conflicts: this branch deletes `package.json#pnpm` (pnpm 11 does not read it), while `main` kept editing that field and added two overrides to it since the branch point — `serialize-javascript: '>=7.0.5'` and `qs: '>=6.15.2'`, both security pins. The conflict is resolved by keeping the field deleted and carrying those two overrides into `pnpm-workspace.yaml#overrides`, which is where pnpm reads them from. That list now matches `pnpm-lock.yaml#overrides` entry for entry, so a frozen install is consistent again. Everything else `main` changed in the manifest — the 0.49.0 version bump, the `start:dev-example:mdast-editor` and `build:dev-examples` scripts, the Playwright bumps — is taken as-is, and this branch's own changes to it (the `[email protected]` pin, `engines.pnpm`, the removed `workspaces` and `engineStrict` fields, `pnpm dlx`/`pnpm exec` in place of `npx`) are preserved. No other file conflicted. ## Test plan ### Before ``` $ git merge-tree --write-tree main HEAD Auto-merging package.json CONFLICT (content): Merge conflict in package.json ``` ### After Clean merge, then with pnpm 11.24.0 on Node v22.22.2: ``` $ pnpm install --frozen-lockfile Done in 5.3s using pnpm v11.24.0 install exit=0 $ git diff --stat pnpm-lock.yaml (no output) ``` ``` $ pnpm run ci-check No errors! ci-check exit=0 $ pnpm run test-unit Test Files 316 passed (316) Tests 5681 passed | 1 skipped (5682) Duration 199.15s test-unit exit=0 ``` E2E, browser and integration suites were not run in this environment. Co-Authored-By: Claude <[email protected]>
…ace root ## Description `test-integration` fails on every example whose dependencies carry build scripts, and installs the real `sharp`/`onnxruntime-node` into the agent example instead of its stubs: ``` [WARN] The "pnpm" field in package.json is no longer read by pnpm. The following keys were ignored: "pnpm.overrides". [ERR_PNPM_IGNORED_BUILDS] Ignored build scripts: [email protected], [email protected], [email protected] ``` Two separate causes, both from pinning pnpm 11: - `examples/agent-example` and the astro fixture kept their settings in `package.json#pnpm`, which pnpm 11 ignores. The agent example's overrides are what replace `onnxruntime-node` and `sharp` — the heavy native dependencies of `@huggingface/transformers` — with `./stubs/empty`, so ignoring them pulls both packages in for real. - Skipped dependency build scripts are an error under pnpm 11, not the warning they were under pnpm 10, and these projects declare no decision about them. The fix for both is the same file. `pnpm-workspace.yaml` is where pnpm 11 reads a project's `overrides` and build-script settings from, and a project that has one is its own workspace root — which is exactly the isolation the harness was getting from `--ignore-workspace`. So each example and fixture gets one, and the harness stops passing that flag where such a file exists: `--ignore-workspace` ignores *any* `pnpm-workspace.yaml`, the project's own included, so the two cannot be combined. `strictDepBuilds: false` keeps skipped build scripts a warning, which is how these examples have always installed — no build script was ever approved for them. The dead `pnpm` field is removed from the two manifests that had one; the npm-style `overrides` field beside it is left alone, since npm still reads it. ## Test plan ### Before ``` $ cd examples/agent-example && pnpm install --ignore-workspace [WARN] The "pnpm" field in package.json is no longer read by pnpm. The following keys were ignored: "pnpm.overrides". [ERR_PNPM_IGNORED_BUILDS] Ignored build scripts: [email protected], [email protected], [email protected] install exit=1 ``` ### After The install succeeds, the skipped builds are a warning, and the stubs are back: ``` $ cd examples/agent-example && pnpm install │ Ignored build scripts: [email protected], [email protected]. │ Done in 31s using pnpm v11.24.0 install exit=0 $ readlink -f node_modules/sharp # -> examples/agent-example/stubs/empty $ readlink -f node_modules/onnxruntime-node # -> examples/agent-example/stubs/empty $ grep -A3 '^overrides:' pnpm-lock.yaml overrides: onnxruntime-node: link:./stubs/empty sharp: link:./stubs/empty ``` The `link:` fixture still resolves into `packages/` without `--ignore-workspace`, which is what that flag was there for: ``` $ cd scripts/__tests__/integration/fixtures/lexical-link-source-mode && pnpm install Done in 1.3s using pnpm v11.24.0 install exit=0 lexical -> packages/lexical @lexical/rich-text -> packages/lexical-rich-text @lexical/extension -> packages/lexical-extension ``` The nested workspace roots do not disturb the monorepo install: ``` $ pnpm install --frozen-lockfile Scope: all 43 workspace projects Done in 1.1s using pnpm v11.24.0 ``` A `pnpm install` in each of the 20 examples and 2 fixtures is running to confirm the whole set; the full `test-integration` suite was not run in this environment. Co-Authored-By: Claude <[email protected]>
## Description Fixes the previous commit, which left pnpm's own scaffolding in nine of the files it added: ```yaml allowBuilds: esbuild: set this to true or false ``` `strictDepBuilds: false` keeps a skipped build script from failing the install, but it does not make the decision — so pnpm still writes that placeholder block into `pnpm-workspace.yaml` on every install. Any project whose file was written before its first install got the placeholder committed, and every subsequent install rewrote the file again, which would leave the integration suite with a dirty tree. Each project now decides its own build scripts explicitly, as the monorepo root does, so pnpm has nothing to scaffold and the file survives an install untouched. The lists are what pnpm reported for each project: `esbuild` everywhere, plus `protobufjs` for the agent example, `leveldown` for react-rich-collab and `sharp` for the astro fixture; `nextjs-code-shiki` and `node-state-style` have no build scripts at all. `strictDepBuilds` is dropped — with every script decided it does nothing, and leaving it would let a future dependency reintroduce the silent rewrite. Each file also states `packages: []` now, so it reads as the workspace root it is rather than a bare settings file. ## Test plan ### Before The nine files committed with placeholders, and an install rewrote every file it touched: ``` $ git grep -c "set this to true or false" -- '*pnpm-workspace.yaml' | wc -l 9 ``` ### After `pnpm install` in all 20 examples and both fixtures, each from a clean `node_modules` and no lockfile: ``` OK examples/agent-example/ OK examples/extension-react-table/ ... OK scripts/__tests__/integration/fixtures/lexical-esm-astro-react/ OK scripts/__tests__/integration/fixtures/lexical-link-source-mode/ ``` and the files are byte-identical afterwards — no scaffolding, nothing to re-commit: ``` $ md5sum examples/*/pnpm-workspace.yaml scripts/__tests__/integration/fixtures/*/pnpm-workspace.yaml > before.md5 $ # re-install agent-example, react-rich-collab and the astro fixture $ md5sum -c before.md5 | grep -c FAILED 0 $ git grep -l "set this to true or false" | wc -l 0 ``` The full `test-integration` suite (which also builds and tests each example) was not run in this environment. Co-Authored-By: Claude <[email protected]>
## Description Two bugs kept `test-integration` red, both in the harness rather than in the projects it installs. **The `--ignore-workspace` check never fired.** `installCommand()` was called inside `withCwd()`, which `process.chdir()`s into the project first, so the relative `exampleDir` resolved against the project itself: ``` examples/agent-example before chdir: pnpm install after chdir : pnpm install --ignore-workspace ``` Every project therefore installed with `--ignore-workspace`, which suppresses its own `pnpm-workspace.yaml` — so the `allowBuilds` decisions added in the previous commit were never read, and the link fixture failed with `ERR_PNPM_IGNORED_BUILDS: [email protected]`. The call is hoisted above `withCwd` now, and the helper says why it has to stay there. **The tarball overrides went to a field pnpm no longer reads.** The harness points each monorepo dependency at its freshly built tarball by writing `package.json#pnpm.overrides` — the field pnpm 11 ignores: ``` [WARN] The "pnpm" field in package.json is no longer read by pnpm. The following keys were ignored: "pnpm.overrides". ``` So the overrides silently did nothing and the examples were built against the *published* `@lexical/*` 0.49.0 from the registry rather than the packages this repo just built — the one thing the suite exists to check. CI shows it plainly: `+ @lexical/code 0.49.0` with no tarball in sight. They are now merged into the project's `pnpm-workspace.yaml`, which is where pnpm 11 reads `overrides` from — it accepts neither `package.json#pnpm` nor npm's `overrides` field, and map settings cannot come from the CLI either (`--config.overrides.x=y` is silently dropped), so this file is the only home left. `mergeWorkspaceOverrides` injects into a project's existing `overrides:` block or appends a new one, and the original file is restored in the `finally` that used to restore package.json — which no longer needs rewriting at all. ## Test plan ### Before ``` $ node -e "<resolve exampleDir before and after chdir>" examples/agent-example before chdir (fixed): pnpm install after chdir (bug) : pnpm install --ignore-workspace scripts/__tests__/integration/fixtures/lexical-link-source-mode before chdir (fixed): pnpm install after chdir (bug) : pnpm install --ignore-workspace ``` and pnpm 11 ignoring both non-yaml homes for overrides, on a project whose `semver` dependency an override should pin to 7.6.0: ``` $ pnpm install --config.overrides.semver=7.6.0 # CLI version: 7.8.5 $ # package.json "overrides": {"semver": "7.6.0"} version: 7.8.5 $ # pnpm-workspace.yaml overrides: {semver: 7.6.0} version: 7.6.0 ``` ### After `mergeWorkspaceOverrides` against the two shapes it has to handle — a project that already declares overrides, and one that does not: ``` ===== examples/agent-example/pnpm-workspace.yaml overrides: 'lexical': 'file:/abs/npm/lexical-0.49.0.tgz' '@lexical/react': 'file:/abs/npm/lexical-react-0.49.0.tgz' onnxruntime-node: 'link:./stubs/empty' sharp: 'link:./stubs/empty' ===== examples/react-rich/pnpm-workspace.yaml overrides: 'lexical': 'file:/abs/npm/lexical-0.49.0.tgz' '@lexical/react': 'file:/abs/npm/lexical-react-0.49.0.tgz' ``` `eslint` and `prettier` pass on the harness. The suite itself is running locally to confirm the tarballs now reach the examples; results follow. Co-Authored-By: Claude <[email protected]>
…the release and gallery scripts ## Description Two more callers install a standalone example with `--ignore-workspace`, which suppresses the example's own `pnpm-workspace.yaml` — where pnpm 11 reads its overrides and build-script decisions from. Both would fail with `ERR_PNPM_IGNORED_BUILDS` the same way the integration harness did: - `scripts/update-examples.mjs`, which regenerates every example's lockfile in the post-release workflow. - `scripts/capture-gallery-screenshots.ts`, which installs an example to screenshot it. Neither needs the flag any more: each example's own `pnpm-workspace.yaml` makes its directory the workspace root, which is what kept these installs out of the monorepo workspace in the first place. Also updates a comment in `prepare-release.test.mjs` that described the old flag-based flow. ## Test plan ### Before ``` $ cd examples/react-rich && pnpm install --ignore-workspace [ERR_PNPM_IGNORED_BUILDS] Ignored build scripts: [email protected] ``` ### After The integration suite, run through the real harness for each shape it has to handle — a `link:` fixture, a plain example, and the two projects that carry their own overrides: ``` $ pnpm exec vitest --project integration --no-watch -t "lexical-link-source-mode" Test Files 1 passed | 3 skipped (4) Tests 2 passed | 188 skipped (190) $ pnpm exec vitest --project integration --no-watch -t "examples/react-rich" Test Files 1 passed | 3 skipped (4) Tests 4 passed | 186 skipped (190) $ pnpm exec vitest --project integration --no-watch -t "agent-example|lexical-esm-astro-react" Test Files 1 passed | 3 skipped (4) Tests 5 passed | 185 skipped (190) ``` and the examples now resolve the locally built tarballs rather than the published packages, which is what the suite is for: ``` $ grep -m3 'file:' examples/react-rich/pnpm-lock.yaml '@lexical/internal': file:/home/user/lexical/npm/lexical-internal-0.49.0.tgz lexical: file:/home/user/lexical/npm/lexical-0.49.0.tgz '@lexical/selection': file:/home/user/lexical/npm/lexical-selection-0.49.0.tgz ``` `eslint`, `prettier` and `tsc -p tsconfig.scripts.json` pass. The full integration suite is running; the post-release `update-examples` and gallery screenshot scripts were not exercised end to end here. Co-Authored-By: Claude <[email protected]>
…one is missed
## Description
Merges `main`, which adds `examples/react-mathtype`, and closes the gap that
example exposed. It has no `pnpm-workspace.yaml`, so the harness crashed
reading one:
```
Error: ENOENT: no such file or directory, open '.../examples/react-mathtype/pnpm-workspace.yaml'
❯ buildExample scripts/__tests__/integration/utils.mjs:226:36
```
Three things follow from that:
- `examples/react-mathtype` gets its own `pnpm-workspace.yaml`, with the same
`allowBuilds: {esbuild: false}` decision its install reports. Without it the
install silently climbs into the monorepo and picks up the workspace's
settings — the root's `overrides` and cooldown included — rather than
standing alone the way an example a user copies has to.
- The harness treats a missing file as empty rather than fatal: it writes a
throwaway one carrying the tarball overrides and removes it afterwards. A new
example landing without the file is then a clear, local failure instead of one
that takes the whole suite down.
- A `scripts-unit` audit asserts every `examples/*` and integration fixture
ships the file, so the next one to land without it fails in seconds with a
message that names the project, rather than deep inside an install.
## Test plan
### Before
```
$ cd examples/react-mathtype && pnpm install # no pnpm-workspace.yaml
Done in 2.6s using pnpm v11.24.0 # silently used the monorepo's config
$ printf 'packages: []\n' > pnpm-workspace.yaml # isolate it, as a standalone project
$ pnpm install
[ERR_PNPM_IGNORED_BUILDS] Ignored build scripts: [email protected]
```
### After
```
$ cd examples/react-mathtype && pnpm install
Done in 1.7s using pnpm v11.24.0
file unchanged: yes
$ pnpm exec vitest --project integration --no-watch -t "react-mathtype"
Test Files 1 passed | 3 skipped (4)
Tests 2 passed | 190 skipped (192)
```
The audit passes across all 23 projects, and fails as intended when a file is
missing (checked by moving react-mathtype's aside):
```
$ pnpm exec vitest --project scripts-unit --no-watch -t "standalone projects are their own pnpm workspace root"
Tests 23 passed | 939 skipped (962)
$ mv examples/react-mathtype/pnpm-workspace.yaml /tmp/ && <re-run>
× examples/react-mathtype 7ms
Tests 1 failed | 22 passed | 939 skipped (962)
```
The full integration suite has still not been run end to end here; the
per-project runs above are per shape, not exhaustive.
Co-Authored-By: Claude <[email protected]>
…e/youthful-pascal-DXj9t 28 commits from main. One textual conflict, in `LexicalParagraphNode.ts`'s imports: main added `$isRangeSelection` for its new `extractWithChild`, this branch added `GENERATED_PARAGRAPH`. Both are needed; both kept. Main upgraded to pnpm 11 (meta#8816), which drops the `workspaces` field from `package.json` in favour of per-project `pnpm-workspace.yaml`. pnpm then wants to purge and reinstall `node_modules`, so this merge was verified after `CI=true pnpm install --frozen-lockfile` rather than against the pre-merge tree. The risk a clean merge hides here is a property main added to a serialization method this branch replaced with a schema — it would merge without conflict and vanish. Checked and absent: main changed no `exportJSON`/`updateFromJSON`/ `importJSON`/`afterCloneFrom`/`static clone` in any converted node, and added no `__`-prefixed node fields. Its one new node class is in `examples/react-mathtype`, outside the packages. Regenerating produced no drift, so the checked-in generated code still describes the merged schemas. Verified on the merge result: ``` $ pnpm run generate-node-json && git diff --stat -- packages/*/src/*GeneratedJSON.ts (no change) $ npx tsc -p . --noEmit && npx tsc -p ./tsconfig.scripts.json --noEmit $ npx flow stop && npm run flow No errors! $ npx vitest run Test Files 364 passed (364) Tests 6479 passed | 2 skipped (6481) ``` `scripts/error-codes/codes.json` is untouched. Co-Authored-By: Claude Opus 5 <[email protected]>
…ing-nesting ## Description Syncs the branch with main (`157b3f27f..6d6a453`), which brings in the nested mixed-type list import rework (meta#8283), the pnpm 11 upgrade (meta#8816), and nine other commits. One textual conflict, in `MarkdownTransformers.ts`: both sides added a named import from `./utils` on the same line. Resolved as the union (`isEmptyParagraph, transformersByType, unescapeText`). The semantic overlap is with meta#8283, whose column-based list indentation now also runs for lists imported inside shadow root quotes (this branch routes quoted blocks through the same list transformers). Verified the interaction directly: a nested list inside a quote (`> - a\n> - b\n> - c`) imports with the correct structure and exports with the same indent normalization as the identical list at top level. ## Test plan ### Before ``` $ git merge upstream/main CONFLICT (content): Merge conflict in packages/lexical-markdown/src/MarkdownTransformers.ts $ pnpm run ci-check # against the pre-merge node_modules ERR_PNPM_ABORTED_REMOVE_MODULES_DIR_NO_TTY (pnpm 11 upgrade requires reinstall) ``` ### After ``` $ CI=true pnpm install --frozen-lockfile Done in 43s using pnpm v11.24.0 $ pnpm run test-unit Test Files 325 passed (325) Tests 6059 passed | 1 skipped (6060) $ pnpm run ci-check # tsc, flow, prettier, eslint ci-check exit: 0 $ E2E_BROWSER=chromium npx playwright test --project=chromium \ packages/lexical-playground/__tests__/e2e/ShadowRootQuotes.spec.mjs 7 passed (26.7s) ```
Summary
Upgrades the pinned package manager from
[email protected]to[email protected]and adapts the repo config to pnpm 11's breaking changes.pnpm-lock.yamlis unchanged — no dependency resolution drift; this is a package-manager version bump plus config relocation.Changes
packageManager→[email protected],engines.pnpm→>=11.0.0.overridesandpeerDependencyRulesout ofpackage.jsonintopnpm-workspace.yaml— pnpm 11 no longer reads thepnpmfield inpackage.json..pnpmrc→pnpm-workspace.yaml— pnpm 11 no longer reads.pnpmrc.node-linker=hoisted(required for the ESM.mjstests) becomesnodeLinker: hoisted. Theonnxruntime-node-install=skipsetting is dropped as dead config (onnxruntime-nodeis already stubbed via an override).yjsoverride now uses a catalog (catalog:) instead of the deprecated$yjsreference syntax, silencing pnpm 11's deprecation warning. Same resolved version.allowBuildsdeclared (all disabled) to preserve the pre-migration behavior where no dependency build scripts were approved (matches pnpm 10, on which CI passed with prebuilt binaries).CI needs no changes —
pnpm/action-setup@v6derives the version from thepackageManagerfield.Test plan
All run locally under pnpm 11.10.0:
pnpm install --frozen-lockfile(lockfile consistent, stilllockfileVersion: 9.0)node_modulesconfirmed hoistedpnpm run ci-check— tsc, tsc-scripts, tsc-extension, tsc-website, flow, prettier, lint (no errors)pnpm run test-unit— 216 files, 4610 passed, 1 skippedpnpm run build