yarnpkg/yarn

workspace run commands only when it exists

Open

#6739 aperta il 29 nov 2018

Vedi su GitHub
 (8 commenti) (20 reazioni) (0 assegnatari)JavaScript (2731 fork)batch import
cat-featuregood first issuehelp wanted

Metriche repository

Star
 (41.514 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor