yarnpkg/yarn

workspace run commands only when it exists

オープン

#6,739 opened on 2018/11/29

 (8 件のコメント) (20 件のリアクション) (0 人の担当者)JavaScript (2,731 件のフォーク)batch import
cat-featuregood first issuehelp wanted

Repository metrics

Stars
 (41,514 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド