node package manager

lerna-run

lerna-run

run command in each packages of monorepo (lerna)

Circle CI

Install

% npm i lerna-run -g

Use

move into each directories, and execute command.

serial

% lerna-run ls
% lerna-run babel src/ --out-dir lib/

parallel

% lerna-run --parallel babel src/ --out-dir lib/ --watch