diff --git a/.changeset/hot-coins-carry.md b/.changeset/hot-coins-carry.md new file mode 100644 index 0000000000..d8ca9233bc --- /dev/null +++ b/.changeset/hot-coins-carry.md @@ -0,0 +1,5 @@ +--- +"@pnpm/plugin-commands-installation": patch +--- + +The add and install commands should accept setting the `modules-dir` setting. diff --git a/packages/plugin-commands-installation/src/add.ts b/packages/plugin-commands-installation/src/add.ts index b3d7cfb230..690167233f 100644 --- a/packages/plugin-commands-installation/src/add.ts +++ b/packages/plugin-commands-installation/src/add.ts @@ -27,6 +27,7 @@ export function rcOptionsTypes () { 'lockfile-directory', 'lockfile-only', 'lockfile', + 'modules-dir', 'network-concurrency', 'npmPath', 'package-import-method', diff --git a/packages/plugin-commands-installation/src/install.ts b/packages/plugin-commands-installation/src/install.ts index e0ec9429a9..dd40d5c803 100644 --- a/packages/plugin-commands-installation/src/install.ts +++ b/packages/plugin-commands-installation/src/install.ts @@ -28,6 +28,7 @@ export function rcOptionsTypes () { 'lockfile-directory', 'lockfile-only', 'lockfile', + 'modules-dir', 'network-concurrency', 'package-import-method', 'pnpmfile',