feat: add new filter-prod option (#3372)
Add the new filter-prod option that executes the same as the filter option except it does not include devDependencies when building the package graph. Co-authored-by: Caleb Doucet <cdoucet>
This commit is contained in:
1 parent
85fb21a837
commit
dfdf669e64
15 files changed
+242
-19
No files matched your search
@@ -105,7 +105,7 @@ export default async function parseCliArgs (
|
||||
// `pnpm install ""` is going to be just `pnpm install`
|
||||
const params = argv.remain.slice(1).filter(Boolean)
|
||||
|
||||
if (options['recursive'] !== true && (options['filter'] || recursiveCommandUsed)) {
|
||||
if (options['recursive'] !== true && (options['filter'] || options['filter-prod'] || recursiveCommandUsed)) {
|
||||
options['recursive'] = true
|
||||
const subCmd: string | null = argv.remain[1] && opts.getCommandLongName(argv.remain[1])
|
||||
if (subCmd && recursiveCommandUsed) {
|
||||
|
||||
Reference in new issue
Block a user