Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistency about symlinks created by workspaces #1019

Open
tzimmermann opened this issue Nov 8, 2019 · 0 comments
Open

Inconsistency about symlinks created by workspaces #1019

tzimmermann opened this issue Nov 8, 2019 · 0 comments
Assignees

Comments

@tzimmermann
Copy link

I noticed an inconsistency in the documentation about workspaces and the actual observed behaviour.

If I understand it correctly, the documentation tells me in this line:
https://github.com/yarnpkg/website/blame/master/lang/en/docs/workspaces.md#L77
that a dependency will not be symlinked under /node_modules if it's not actually required as a dependency somewhere.

Given a minimal yarn workspaces repo like https://github.com/pedronauck/yarn-workspaces-example, I observed that after running yarn install (with v1.19.1) created both symlinks:

/node_modules/a -> /a
/node_modules/b -> /b

Although package b is not a dependency of anything.

So either the docs are wrong here, or it is an actual yarn implementation bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants