pnpm rebuild accepts --store-dir (#5036)

* feat: pnpm rebuild accepts --store-dir

* chore: add changeset
This commit is contained in:
Cheng
2022-07-16 01:03:45 +08:00
committed by GitHub
parent 776da1ad8e
commit 13210db3c3
2 changed files with 10 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
"@pnpm/plugin-commands-rebuild": patch
---
pnpm rebuild accepts --store-dir

View File

@@ -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 <dir>',
},
...UNIVERSAL_OPTIONS,
],
},