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

Can't remove package in workspace based project #3972

Closed
donaldpipowitch opened this issue Jul 20, 2017 · 2 comments
Closed

Can't remove package in workspace based project #3972

donaldpipowitch opened this issue Jul 20, 2017 · 2 comments
Labels

Comments

@donaldpipowitch
Copy link
Contributor

donaldpipowitch commented Jul 20, 2017

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

bug

What is the current behavior?

$ yarn remove react
yarn remove v0.27.5
error No lockfile in this directory. Run `yarn install` to generate one.

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

  1. $ git clone [email protected]:pedronauck/yarn-workspaces-example.git
  2. $ cd yarn-workspaces-example/packages/a
  3. $ yarn add react
  4. $ yarn remove react

What is the expected behavior?

  • removes react as a dependency in ./packages/a/package.json
  • updates ./yarn.lock
  • updates ./node_modules/ and ./packages/a/node_modules/

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

  • Node v6.9.1
  • yarn v0.27.5
  • Mac OS X

Workspaces look great so far! ♥

@edmorley
Copy link
Contributor

Hi! I think this is a (forward) dupe of #4334 which is meant to be fixed by #4654, which is in the recently released yarn 1.2.0. Could you give the new version a try? :-)

@donaldpipowitch
Copy link
Contributor Author

This works 😍 Thank you.

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

No branches or pull requests

3 participants