yarnpkg/yarn

workspace run commands only when it exists

开放

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

 (8 条评论) (20 个反应) (0 位负责人)JavaScript (2,731 个派生)batch import
cat-featuregood first issuehelp wanted

仓库指标

星标
 (41,514 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南