Files
pnpm/workspace/state
Zoltan Kochan d7c4fe979d fix: detect overrides and other lockfile-affecting setting changes in optimisticRepeatInstall (#10654)
* fix: detect overrides and other lockfile-affecting setting changes in optimisticRepeatInstall

When optimisticRepeatInstall was enabled, changing overrides,
packageExtensions, ignoredOptionalDependencies, patchedDependencies,
or peersSuffixMaxLength would not trigger a reinstall because these
settings were not tracked in the workspace state file.

* refactor: extract WORKSPACE_STATE_SETTING_KEYS to prevent type/runtime drift

The settings key list in createWorkspaceState's pick() call must stay
in sync with the WorkspaceStateSettings type. Extract a shared const
array so both the type and runtime pick are derived from a single
source, preventing the class of bug fixed in the previous commit.
2026-03-07 15:24:09 +01:00
..
2026-02-17 16:44:04 +01:00
2026-02-17 16:44:04 +01:00

@pnpm/workspace.state

Track the list of actual paths of workspace packages in a cache.

npm version

Installation

pnpm add @pnpm/workspace.state

License

MIT