Comparing version 1.2.1 to 1.2.2
@@ -26,2 +26,3 @@ #!/usr/bin/env node | ||
const doneCriteria = yargs_1.argv.doneCriteria; | ||
const exclude = (yargs_1.argv.exclude && (Array.isArray(yargs_1.argv.exclude) ? yargs_1.argv.exclude : [yargs_1.argv.exclude])) || []; | ||
const cmd = yargs_1.argv._[0]; | ||
@@ -45,3 +46,4 @@ const pkgName = yargs_1.argv._[1]; | ||
recursive, | ||
doneCriteria | ||
doneCriteria, | ||
exclude | ||
}, pkgPaths); | ||
@@ -48,0 +50,0 @@ let runlist = yargs_1.argv._.slice(1); |
@@ -41,2 +41,3 @@ /// <reference types="node" /> | ||
doneCriteria: string | undefined; | ||
exclude: string[]; | ||
} | ||
@@ -43,0 +44,0 @@ export declare class RunGraph { |
@@ -163,2 +163,6 @@ "use strict"; | ||
return myDeps.then(() => { | ||
if (this.opts.exclude.indexOf(pkg) >= 0) { | ||
console.log('Package', pkg, 'in exclude list', this.opts.exclude, ': skipping'); | ||
return Promise.resolve(); | ||
} | ||
let cmdLine = this.makeCmd(cmd, pkg); | ||
@@ -165,0 +169,0 @@ const child = new CmdProcess(cmdLine, pkg, { |
{ | ||
"name": "wsrun", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "executes commands on packages in parallel, but is aware of the dependencies between them", | ||
@@ -5,0 +5,0 @@ "main": "./build/index.js", |
@@ -25,2 +25,3 @@ # Workspace command runner | ||
--done-criteria=regex consider the process "done" when output line matches regex | ||
--exclude pkgname skip actually running the command for that package | ||
``` | ||
@@ -36,2 +37,4 @@ | ||
`yarn wsrun watch planc -r --exclude planc` will watch all of planc's dependencies but not planc | ||
`yarn wsrun build h4zip -r --stages` will build all the deps. in order, then build h4zip | ||
@@ -38,0 +41,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
40665
592
46
1