Skip to content

Commit 0de7372

Browse files
authoredJan 26, 2022
Update pnpm to allow installing dependencies in a monorepo (#7566)
As with Yarn 2, PNPM needs the -W parameter to install packages in root.
1 parent a930ba5 commit 0de7372

File tree

1 file changed

+1
-1
lines changed
  • packages/core/package-manager/src

1 file changed

+1
-1
lines changed
 

‎packages/core/package-manager/src/Pnpm.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export class Pnpm implements PackageInstaller {
8484
}: InstallerOptions): Promise<void> {
8585
let args = ['add', '--reporter', 'ndjson'];
8686
if (saveDev) {
87-
args.push('-D');
87+
args.push('-D', '-W');
8888
}
8989
args = args.concat(modules.map(npmSpecifierFromModuleRequest));
9090

0 commit comments

Comments
 (0)
Please sign in to comment.