diff --git a/packages/plugin-commands-installation/src/remove.ts b/packages/plugin-commands-installation/src/remove.ts index f1db16bbea5..c39a18ea51e 100644 --- a/packages/plugin-commands-installation/src/remove.ts +++ b/packages/plugin-commands-installation/src/remove.ts @@ -65,6 +65,7 @@ export function rcOptionsTypes () { 'shared-workspace-lockfile', 'store', 'store-dir', + 'strict-peer-dependencies', 'virtual-store-dir', ], allTypes) } diff --git a/packages/pnpm/test/hooks.ts b/packages/pnpm/test/hooks.ts index 373e1de49f7..e8843bb2c87 100644 --- a/packages/pnpm/test/hooks.ts +++ b/packages/pnpm/test/hooks.ts @@ -92,10 +92,10 @@ test('filterLog hook filters peer dependency warning', async () => { } ` await fs.writeFile('.pnpmfile.cjs', pnpmfile, 'utf8') - const result = execPnpmSync(['add', '@rollup/pluginutils@3.1.0']) + const result = execPnpmSync(['add', '@rollup/pluginutils@3.1.0', '--no-strict-peer-dependencies']) expect(result.status).toBe(0) expect(result.stdout.toString()).toEqual( expect.not.stringContaining('requires a peer of rollup') ) -}) \ No newline at end of file +}) diff --git a/packages/pnpm/test/install/hooks.ts b/packages/pnpm/test/install/hooks.ts index 77b4e03897a..98bbc9385c1 100644 --- a/packages/pnpm/test/install/hooks.ts +++ b/packages/pnpm/test/install/hooks.ts @@ -607,8 +607,8 @@ test('readPackage hook is used during removal inside a workspace', async () => { `, 'utf8') process.chdir('project') - await execPnpm(['install']) - await execPnpm(['uninstall', 'is-positive']) + await execPnpm(['install', '--no-strict-peer-dependencies']) + await execPnpm(['uninstall', 'is-positive', '--no-strict-peer-dependencies']) process.chdir('..') const lockfile = await readYamlFile('pnpm-lock.yaml') diff --git a/packages/pnpm/test/monorepo/index.ts b/packages/pnpm/test/monorepo/index.ts index ad3fe83769e..baefda99721 100644 --- a/packages/pnpm/test/monorepo/index.ts +++ b/packages/pnpm/test/monorepo/index.ts @@ -1189,7 +1189,7 @@ test('peer dependency is grouped with dependent when the peer is a top dependenc }) } - await execPnpm(['uninstall', 'ajv']) + await execPnpm(['uninstall', 'ajv', '--no-strict-peer-dependencies']) { const lockfile = await readYamlFile(path.resolve('..', WANTED_LOCKFILE))