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

@webpack-cli/init needs to be installed a local dependency #564

Closed
AjayPoshak opened this issue Aug 6, 2018 · 5 comments
Closed

@webpack-cli/init needs to be installed a local dependency #564

AjayPoshak opened this issue Aug 6, 2018 · 5 comments

Comments

@AjayPoshak
Copy link
Contributor

Is your feature request related to a problem? Please describe.
While doing webpack-cli init webpack-scaffold-pwa, I am asked to install @webpack-cli/init as a separate package, even though I have it installed globally. So cli installs it locally, then it sits in my dependencies even though I need it only once. It would take me extra efforts going to my package.json and remove it from there after it has been used.

Describe the solution you'd like
I would like to have @webpack-cli/init installed globally at my system, as I use it once per project and after that, it makes no sense in that package's dependencies. So it should resolve @webpack-cli/init from global packages' list first, then check my local dependencies. And also when I say yes for installation, then it should install it globally.

@ematipico
Copy link
Contributor

I think user have the choice to install it globally or locally. People have always different needs. What do you think?

@dhruvdutt
Copy link
Member

dhruvdutt commented Aug 22, 2018

I agree people might have different needs, IMHO most people would run this command once when they are setting up a new project so it makes sense to give more precedence to the global package list.

@evenstensberg
Copy link
Member

Yep. Agree. Will try to resolve this in a newer version of webpack-cli coming soon.

@manu-chroma
Copy link
Contributor

Hey, I came across this on twitter from a Hacktoberfest tweet. I will like to work on this one.

Should I wait for the new release or start looking on how to implement it?

@evenstensberg
Copy link
Member

You could start to implement it!

manu-chroma added a commit to manu-chroma/webpack-cli that referenced this issue Oct 7, 2018
manu-chroma added a commit to manu-chroma/webpack-cli that referenced this issue Oct 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants