lerna-runner

0.0.5 • Public • Published

lerna-runner 🏃‍

A CLI for running node scripts in monorepo packages.

Getting Started

Install it

yarn add -D lerna-runner

Add the script

Add the script to your package.json.

{
    "scripts": {
        "runner": "lerna-runner"
    }
}

Run it

yarn runner

FAQs

  • Why is it not finding my packages?

lerna-runner looks for the workspaces key in your root package.json file and then searches your workspaces for directories containing their own package.json files. Make sure you have defined your workspaces inside of your root package.json file.

{
   "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.

Readme

Keywords

none

Package Sidebar

Install

npm i lerna-runner

Weekly Downloads

1

Version

0.0.5

License

MIT

Unpacked Size

240 kB

Total Files

6

Last publish

Collaborators

  • jcarroll2007