Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with npm 7? #105

Open
mnasyrov opened this issue Nov 22, 2020 · 1 comment
Open

Compatibility with npm 7? #105

mnasyrov opened this issue Nov 22, 2020 · 1 comment

Comments

@mnasyrov
Copy link

Hi! Npm 7 now supports the similar concept for workspaces.

  • How wsrun is bound with yarn?
  • Could it be used with npm for running scripts in workspaces?

I tried to use a shell script with --bin option to use npm's run. It seems working, but not convenient:

npm-run.sh

#!/bin/sh
npm run "$@"

usage:

npx wsrun --bin="$(pwd)/npm-run.sh" -m -c clean
@cjones26
Copy link

Honestly I just tried it and it seems like it works fine for me 🤷...YMMV.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants