yarnpkg/yarn

Workspaces - Is it possible to exclude some node_modules from beeing hoisted to the root node_modules folder?

Open

#3,882 建立於 2017年7月10日

在 GitHub 查看
 (41 留言) (52 反應) (0 負責人)JavaScript (41,514 star) (2,731 fork)batch import
cat-featurehelp wantedhigh-priorityneeds-discussiontriaged

描述

Do you want to request a feature or report a bug? Feature

What is the current behavior? We are currently using hoist feature from lerna. I tried to move to yarn workspaces and it works way faster! Awesome, thank you!

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

What is the expected behavior? But i also need the ability (sadly) to exclude some node_modules from not beeing hoisted to the root node_modules folder but be physically installed in the package i configured it as dependency. (The same way the --no-hoist arguments are working for lerna. ) The reason is, sadly, that some dependencies we use, are trying to require some dependencies with an absolute path from packages/<package>/node_modules directly. So i have to exclude some. Is there a way to configure some sort of exclude glob for workspaces?

Please mention your node.js, yarn and operating system version. yarn --version: 0.27.5 node -v: v6.11.0 macOS: 10.12.5

貢獻者指南