-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Feature request: Only install devDependencies #998
Comments
Is this still an open request? If so, I was going to take a swing at it. |
Go ahead @coreyc. |
@coreyc This would be incredibly cool. I have a "helper package" which has 20-30 dependencies in production, but locally I only need two devDependencies. |
Actually we are having an issue that could be solved by this feature. if we set So the solution we are adopting is this in the webpack service: It would be cool if we could specify to force install devDependencies even if |
@SharpEdgeMarshall I think this feature is slightly different than what you're talking about, but will take a look at it. Due to holiday week, been slightly delayed but I am working on this. |
I noticed after commenting that the feature requested by @peterjuras could completely solve our issue, exactly as him we have a build container and we could use ONLY devDepencies. |
@SharpEdgeMarshall I ran into something similar on Heroku, which sets both In npm, |
@coreyc Thanks for the PR. Will you have time to finish it or would it be best to have someone else give it a try? |
@nsgundy I had some open questions that weren't answered in the PR comments. Re-familiarizing myself with the code now. Will update the PR soon. |
@nsgundy thought i could spare some time to finish this, but can't make the time. you can look at the PR, it's close to being finished anyway. |
+1 would love to see this! |
duplicate of #3254. |
Do you want to request a feature or report a bug?
Feature
What is the current behavior?
dependencies
are always installed and there is no command to prevent that.What is the expected behavior?
Similar to
npm install --only=dev
a CLI option to only install devDependencies.(My) usecase: Compile only environments where the resulting build will be used in a docker container (with a separate
yarn install
)The text was updated successfully, but these errors were encountered: