Skip to content

Commit

Permalink
test: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zkochan committed Mar 9, 2022
1 parent d99ec0d commit 1995b2f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/plugin-commands-installation/src/installDeps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,10 @@ when running add/update with the --workspace option')
rootDir: opts.dir,
targetDependenciesField: getSaveType(opts),
}
let [updatedImporter] = await mutateModules([mutatedProject], installOpts)
let [updatedImporter] = await mutateModules([mutatedProject], {
...installOpts,
strictPeerDependencies: opts.autoInstallPeers ? false : installOpts.strictPeerDependencies,
})
if (opts.save !== false) {
if (opts.autoInstallPeers && !isEmpty(updatedImporter.peerDependencyIssues?.intersections ?? {})) {
logger.info({
Expand Down

0 comments on commit 1995b2f

Please sign in to comment.