fix: don't fail when removing a dep from a workspace that has patches

ref https://github.com/pnpm/pnpm/issues/4954#issuecomment-1172858634
This commit is contained in:
Zoltan Kochan
2022-07-02 12:53:45 +03:00
parent f5621a42c2
commit ff7061929f
2 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
---
"@pnpm/core": patch
"pnpm": patch
---
`pnpm remove <pkg>` should not fail in a workspace that has patches [#4954](https://github.com/pnpm/pnpm/issues/4954#issuecomment-1172858634)

View File

@@ -149,7 +149,7 @@ const defaults = async (opts: InstallOptions) => {
preferFrozenLockfile: true,
preferWorkspacePackages: false,
preserveWorkspaceProtocol: true,
pruneLockfileImporters: true,
pruneLockfileImporters: false,
pruneStore: false,
rawConfig: {},
registries: DEFAULT_REGISTRIES,