Socket
Socket
Sign inDemoInstall

wsrun

Package Overview
Dependencies
Maintainers
3
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wsrun - npm Package Compare versions

Comparing version 3.4.0 to 3.5.0

8

build/cmd-process.js

@@ -60,3 +60,3 @@ "use strict";

if (!this.opts.silent)
console.error(msg);
console.error(this.autoPrefix(msg));
if (this.opts.rejectOnNonZeroExit)

@@ -123,4 +123,6 @@ return this._finished.reject(new Error(msg));

this._closed.promise.then(() => {
console.log(stdOutBuffer.map(line => this.autoPrefix(line)).join('\n'));
console.error(stdErrBuffer.map(line => this.autoPrefix(line)).join('\n'));
if (stdOutBuffer.length)
console.log(stdOutBuffer.map(line => this.autoPrefix(line)).join('\n'));
if (stdErrBuffer.length)
console.error(stdErrBuffer.map(line => this.autoPrefix(line)).join('\n'));
});

@@ -127,0 +129,0 @@ }

@@ -44,2 +44,6 @@ #!/usr/bin/env node

},
c: {
boolean: true,
describe: 'Denotes the end of the package list and the beginning of the command. Can be used instead of "--"'
},
recursive: {

@@ -46,0 +50,0 @@ alias: 'r',

{
"name": "wsrun",
"version": "3.4.0",
"version": "3.5.0",
"description": "executes commands on packages in parallel, but is aware of the dependencies between them",

@@ -5,0 +5,0 @@ "main": "./build/index.js",

@@ -18,3 +18,4 @@ # Workspace script runner

--package, -p Run only for this package. Can be used multiple times. [array]
-c Denotes the end of the package list and the beginning of the command. Can be
used instead of "--"
Misc Options:

@@ -45,16 +46,23 @@ --fast-exit If at least one script exits with code > 0, abort [boolean]

#### Specific packages:
`yarn wsrun -p planc -r watch` will watch planc and all of its dependencies.
`yarn wsrun -p planc -c watch` will watch planc only. Note that `-c` is passed here explicitly to
denote the beginning of the command. This is needed becaus `-p` can accept multiple packages. (`-c`
can also be substituted with `--` but that generates warnings in yarn)
`yarn wsrun -p h4zip planc -c test` - run tests for both `h4zip` and `planc
`yarn wsrun -p planc --exclude planc -r watch` will watch all of planc's dependencies but not planc
`yarn wsrun -p h4zip -r --stages build` will build all the deps. in order, then build h4zip
`yarn wsrun -p h4zip -r --stages build` will build all deps of h4zip, in order, then build h4zip
`yarn wsrun -p planc --stages --done-criteria='Compilation complete' -r watch` will watch planc deps, in order, continuing when command outputs "Compilation complete"
`yarn wsrun -p planc --stages --done-criteria='Compilation complete' -r watch` will watch planc deps,
in order, continuing when command outputs "Compilation complete"
`yarn wsrun --exclude-missing test` will run the test script only on packages that have it
To specify multiple packages, use `-p` several times:
#### Arguments and extra scripts
`yarn wsrun -p h4zip -p planc test` - run tests for both h4zip and planc
If you want to pass additional arguments to the command you can do that by adding them after the

@@ -61,0 +69,0 @@ command:

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc