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
{{ message }}
Repository navigation
[Bug]: pnpm 10+ ignores the package.json pnpm field, so overrides and onlyBuiltDependencies do not apply #25
pnpm 10 and later no longer read that field. On pnpm 11.22.0 the install prints:
WARN The "pnpm" field in package.json is no longer read by pnpm. The following keys were ignored: "pnpm.onlyBuiltDependencies", "pnpm.overrides".
The CI pins pnpm 9.12.0 (pnpm/action-setup v6.1.1 with version: 9.12.0), so CI keeps the overrides and a contributor on pnpm 10+ silently does not get them.
Today the install happens to come out right, because the lockfile records the overrides and pnpm carries them over. The problem is what happens next: the next pnpm update or lockfile refresh run on a newer pnpm resolves those versions differently from CI, and the two dependency trees drift apart without anyone noticing. onlyBuiltDependencies is what lets better-sqlite3, esbuild and node-pty run their install scripts, so an ignored key there is a native-module failure waiting for a Windows contributor.
Moving both keys into pnpm-workspace.yaml — where pnpm 10+ reads them — keeps one source of truth that works for the pinned CI version and for anyone on a newer pnpm.
Reproduced with pnpm 11.22.0: dependency settings in package.json were ignored. PR #52 moves overrides and build permissions into pnpm-workspace.yaml and updates the WebUI CI pin. Linux frozen installs were validated with pnpm 10.34.9 and 11.22.0, including SQLite, node-pty and esbuild smoke checks. The three previously unapproved scripts remain denied explicitly for pnpm 11. Closing as addressed by the submitted PR, pending merge and hosted cross-platform checks.
Activity
Fectivnfy112357 commentedon Nov 20, 2026
Reproduced with pnpm 11.22.0: dependency settings in package.json were ignored. PR #52 moves overrides and build permissions into pnpm-workspace.yaml and updates the WebUI CI pin. Linux frozen installs were validated with pnpm 10.34.9 and 11.22.0, including SQLite, node-pty and esbuild smoke checks. The three previously unapproved scripts remain denied explicitly for pnpm 11. Closing as addressed by the submitted PR, pending merge and hosted cross-platform checks.