yarnpkg/yarn

Workspaces don't run lifecycle scripts when linking local packages

Open

#3.911 geöffnet am 11. Juli 2017

Auf GitHub ansehen
 (36 Kommentare) (58 Reaktionen) (0 zugewiesene Personen)JavaScript (2.731 Forks)batch import
cat-buggood first issuehelp wantedhigh-prioritytriaged

Repository-Metriken

Stars
 (41.514 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

What is the current behavior?

When you do a yarn install in a workspaces enabled project, yarn doesn't run the various lifecycle scripts for workspace packages, e.g. prepare prepublish preinstall etc

If the current behavior is a bug, please provide the steps to reproduce.

Here is a commit adding a failing test case: https://github.com/jquense/yarn/commit/61eaf4239f707f772af5713ebc98963589a6dad4

What is the expected behavior?

Lifecycle scripts are run for the local packages so they have an opportunity to build steps. This is what lerna does.

Please mention your node.js, yarn and operating system version.

yarn 27.5 node 8 Mac Sierra

cc @bestander

Contributor Guide