Add lerna exec
See original GitHub issueI’m submitting a Feature request
Motivation / Use Case
lerna exec
makes it easy to run a command in every package in a repo. lerna run
can cover most cases, but if we want to run a simple command like rm -rf ./lib
in every package, or a subset of packages with --scope
, it would be easier to migrate from Lerna if lerna exec
was also part of lerna-lite.
Expected Behavior
Same behavior as Lerna’s lerna exec "my-command"
Other Information
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
@lerna/exec - npm
Execute an arbitrary command in each package. Latest version: 6.2.0, last published: 11 days ago. Start using @lerna/exec in your project by ...
Read more >lerna/exec - lerna/README.md at main · lerna/lerna · GitHub
@lerna/exec. Execute an arbitrary command in each package. Install lerna for access to the lerna CLI. Usage.
Read more >How To Manage Monorepos With Lerna - DigitalOcean
To add a package to your project, use the lerna exec command to execute a shell command: lerna exec npm i lite-server --parallel....
Read more >Getting Started | Lerna
You can incrementally adopt Lerna for existing monorepos or create a new Lerna workspace by running:
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is necessary in monorepo context, you cannot add scripts in each package this way, it’s too hard to maintain. For instance I use that for “depcheck”: https://github.com/VulcanJS/vulcan-npm/blob/main/package.json I’ve requested this feature in Turborepo as well: https://github.com/vercel/turborepo/discussions/375
Many thanks for releasing this feature, it works just perfect, with all arguments!
@ghiscoding You are amazing!