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

ignores the -W flag, when ran from one of the packages in a workspace! #8289

Open
iamfotx opened this issue Aug 7, 2020 · 0 comments
Open

Comments

@iamfotx
Copy link

iamfotx commented Aug 7, 2020

Bug description

Command

yarn add husky -D -W

What is the current behavior?

If I try to add a common dev-dependency from one of the packages in a workspace, it doesn't obey the -W flag.

What is the expected behavior?

I'm expecting the -W flag to add npm package as a dev-dependency (as I do have passed -D flag) in the package.json file at the root of the workspace, even if the command ran from one of the packages it must have obeyed the -W flag. But it didn't.

Steps to Reproduce

  1. Setup a yarn workspace with one or more packages.
  2. Try to add a dev-dependency from one of the packages with -W flag.

Environment

  • Node Version: 12.16.2
  • Yarn v1 Version: 1.22.4
  • OS and version: macOS Cataline (10.15.4)
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

1 participant