0.0.5 • Published 7 years ago
lerna-runner v0.0.5
lerna-runner 🏃
A CLI for running node scripts in monorepo packages.

Getting Started
Install it
yarn add -D lerna-runnerAdd the script
Add the script to your package.json.
{
"scripts": {
"runner": "lerna-runner"
}
}Run it
yarn runnerFAQs
Why is it not finding my packages?
lerna-runnerlooks for theworkspaceskey in your rootpackage.jsonfile and then searches your workspaces for directories containing their ownpackage.jsonfiles. Make sure you have defined yourworkspacesinside of your rootpackage.jsonfile.{ "workspaces": [ "apps/*", "packages/*" ], }
- **Why is it not finding any scripts?**
After using the `workspaces` entry to find your packages and you select a package, `lerna-runner` extracts and displays a list of that packages `scripts` from its `package.json`. Make sure you have `scripts` defined in the package's `package.json` file.