Socket
Socket
Sign inDemoInstall

wsrun

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wsrun

executes commands on packages in parallel, but is aware of the dependencies between them


Version published
Weekly downloads
45K
decreased by-12.54%
Maintainers
1
Weekly downloads
 
Created
Source

Workspace command runner

Usage:

wsrun cmd [<package>] [options]

Options:
  Mode (choose one):
    --parallel                      fully parallel mode (default)
    --stages                        run in stages; start with packages that have no deps.
    --serial                        same as "stages", but with no parallelism at the stage level

  Individual package opts:
    -r, --recursive                 execute the same cmd on all of its dependencies, too

  Misc:
    --fast-exit                     if at least one command exits with code > 0, abort
    --collect-output                collect per-package stdout, print everything at the end, grouped
    --no-prefix                     don't prefix output with "package_name |"
    --bin=yarn                      which program should we pass the cmd to

Examples:

yarn wsrun watch will run yarn watch on every individual package, in parallel.

yarn wsrun build --stages will build all packages, in stages, starting from those that don't depend on other packages.

yarn wsrun watch planc -r will watch planc and all of its dependencies.

yarn wsrun build h4zip -r --stages will build all the deps. in order, then build h4zip

yarn wsrun clean will remove the build folders in every package.

yarn wsrun test will test every package.

Todo:

  • Support for collecting stdouts
  • Support for stdout line prefixes
  • Reorganize files

FAQs

Package last updated on 27 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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