Skip to content

Commit

Permalink
pnpm rebuild accepts --store-dir (#5036)
Browse files Browse the repository at this point in the history
* feat: pnpm rebuild accepts --store-dir

* chore: add changeset
  • Loading branch information
chengcyber committed Jul 15, 2022
1 parent 776da1a commit 13210db
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/rich-plums-mate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@pnpm/plugin-commands-rebuild": patch
---

pnpm rebuild accepts --store-dir
5 changes: 5 additions & 0 deletions packages/plugin-commands-rebuild/src/rebuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export function rcOptionsTypes () {
'reporter',
'scripts-prepend-node-path',
'unsafe-perm',
'store-dir',
], allTypes),
}
}
Expand Down Expand Up @@ -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,
],
},
Expand Down

0 comments on commit 13210db

Please sign in to comment.