支持 `--scope <packages-folder>/*`
作者: MatejBransky创建于 2018年6月8日更新于 2026年3月13日
标签type: feature
It seems that it doesn't work if you want, for example, to call lerna exec --scope packages/* (script for all packages in the ./packages/ folder. I want this because I have two folders: one for packages and one for examples. Because of that I have to, temporarily, use prefixes in names (packages/package-components-foo, packages/package-utils) with lerna exec --scope package-* -- babel src --out-dir lib.
Example:
npm script:
lerna exec --scope packages/* -- babel src --out-dir lib
Expected Behavior
Calls for all packages in the ./packages folder.
内容来源: lerna/lerna