Workspaces don't run lifecycle scripts when linking local packages
**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](https://github.com/lerna/lerna/blob/master/src/commands/BootstrapCommand.js#L100-L111) does. **Please mention your node.js, yarn and operating system version.** yarn 27.5 node 8 Mac Sierra cc @bestander
Posted by jquense on Jul 11, 2017, 8:46 PM
Tags
Related issues
Raise real-world problems, find people facing the same issue, and discuss solutions.4,500 issues0 comments
onboarding (Software)
Minecraft Dungeons II (1912410)
We are seeing the realtime result of MS buying Github and buying influence.
macOS 15 Sequoia clobbers _nixbld1-4 users
News + Polls
Implement Pylint
Add Zig
Unable to run sandboxed process when run as elevated under applocker
[Feature request] Show browser error overlay for runtime errors
Workspaces don't run lifecycle scripts when linking local packages
**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](https://github.com/lerna/lerna/blob/master/src/commands/BootstrapCommand.js#L100-L111) does. **Please mention your node.js, yarn and operating system version.** yarn 27.5 node 8 Mac Sierra cc @bestander
Comments (0)
No comments yet. Start the discussion.