yarnpkg/yarn

workspace run commands only when it exists

Open

#6,739 创建于 2018年11月29日

在 GitHub 查看
 (8 评论) (20 反应) (0 负责人)JavaScript (41,514 star) (2,731 fork)batch import
cat-featuregood first issuehelp wanted

描述

Do you want to request a feature or report a bug? feature

What is the current behavior? As specified in RFC yarn workspaces run <command> will fail if the command is missing in any package.

What is the expected behavior? I'd like yarn to execute the command only on packages that have it. That would allow each package to opt-in by just declaring the desired commands. Note that this is how lerna does it by default.

Please mention your node.js, yarn and operating system version. node v8.11.3 yarn 1.12.3 osx 10.13.6

贡献者指南