You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add run and exec commands for executing commands in monorepo packages (#1151)
The only reason we keep lerna about is for running scripts and commands
in monorepo packages. Unlike npm it's clever enough to figure out the
dependency graph of monorepo packages before running the commands or
scripts in order to ensure that they've been run in a modules
dependencies before being run in that module.
This PR adds two new commands to aegir that do the same thing:
1. exec - this will run a binary command in each monorepo package
2. run - this will run one or more npm scripts in each package
E.g. run `ls` in every package
```console
$ aegir exec ls
```
E.g. clean and build every package
```console
$ aegir run clean build
```
Both commands support forwarding args:
E.g. lint every package, fixing errors
```console
$ aegir run lint -- --fix
```
0 commit comments