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

[BUG] nohoist doesn't work for NPM workspaces #2988

Closed
mesqueeb opened this issue Mar 29, 2021 · 2 comments
Closed

[BUG] nohoist doesn't work for NPM workspaces #2988

mesqueeb opened this issue Mar 29, 2021 · 2 comments
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 7.x work is associated with a specific npm 7 release

Comments

@mesqueeb
Copy link

Current Behavior:

NPM workspaces work just like yarn workspaces, we have been wanting to switch to NPM for years!

However, we desperately need to use the nohoist feature from yarn workspaces for a variety of reasons. Some packages don't work well when hoisted.

Expected Behavior:

When NPM makes workspaces and they work just like yarn, I'd expect to also have the nohoist feature! Therefore I'd love this to be implemented relatively soon!! : )

Steps To Reproduce:

  1. switch out yarn workspaces for npm 7.0 workspaces
  2. nohoist stops to work

Environment:

all

@mesqueeb mesqueeb added Bug thing that needs fixing Needs Triage needs review for next steps Release 7.x work is associated with a specific npm 7 release labels Mar 29, 2021
@nlf
Copy link
Contributor

nlf commented Apr 7, 2021

this isn't a bug, it's a feature request. we do not document that we support nohoist or that we're fully compatible with yarn features (we aren't).

if this feature is important to you, i would suggest reviewing the proposals in https://github.com/npm/rfcs to see if one already discusses it and if not, start a new proposal.

@nlf nlf closed this as completed Apr 7, 2021
@MaximeBernard
Copy link

For anyone coming here, this is the RFC you're looking for npm/rfcs#287

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 7.x work is associated with a specific npm 7 release
Projects
None yet
Development

No branches or pull requests

3 participants