diff --git a/.changeset/rich-plums-mate.md b/.changeset/rich-plums-mate.md new file mode 100644 index 0000000000..0c70dcf998 --- /dev/null +++ b/.changeset/rich-plums-mate.md @@ -0,0 +1,5 @@ +--- +"@pnpm/plugin-commands-rebuild": patch +--- + +pnpm rebuild accepts --store-dir diff --git a/packages/plugin-commands-rebuild/src/rebuild.ts b/packages/plugin-commands-rebuild/src/rebuild.ts index f28f8f4f45..5150087e14 100644 --- a/packages/plugin-commands-rebuild/src/rebuild.ts +++ b/packages/plugin-commands-rebuild/src/rebuild.ts @@ -21,6 +21,7 @@ export function rcOptionsTypes () { 'reporter', 'scripts-prepend-node-path', 'unsafe-perm', + 'store-dir', ], allTypes), } } @@ -55,6 +56,10 @@ For options that may be used with `-r`, see "pnpm help recursive"', description: 'Rebuild packages that were not build during installation. Packages are not build when installing with the --ignore-scripts flag', name: '--pending', }, + { + description: 'The directory in which all the packages are saved on the disk', + name: '--store-dir ', + }, ...UNIVERSAL_OPTIONS, ], },