-
Notifications
You must be signed in to change notification settings - Fork 21
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
No install @types packages of devDependencies (Like the flow-typed --ignoredeps-deps dev
)
#30
Comments
I thought about this earlier but I have a lot of dev deps for testing where I do want the typings, so I didn't add it. An ignore flag would make sense, but why on earth is theirs called |
I understand. |
I’m not ruling it out 😀 If you still think it’ll be useful, it can happen. But can you explain to me why they call it ignoredeps-deps? |
Came to discuss this too. The reasons provided by OP are good enough.
|
I think the default should remain to install typings for all dependencies. We've had the inverse problem of missing dependency sections before. The added installation time is negligible as typings packages have no deps, and in a production build they would be excluded anyway. I'm not opposed to adding a flag to ignore certain sections. If we do this, it would be using an I'm not going to add an install switch, because adding complexity in terms of figuring out which package manager to invoke, then invoking it and redirecting IO is is simply not worth it when you can simply do |
I think this flag is like:
i.e. ignoredeps is short for ignore dependencies and value shows which type (prod, dev, peer etc) of dependencies to ignore |
Gotcha! I'm a bit swamped right now so not sure when I'll get to it. |
I think @mubaidr's (
I agree. |
Thank you for this very useful tool!
Can I NOT install devDependencies's
@types/*
?Like the
flow-typed --ignoredeps-deps dev
.https://github.com/flow-typed/flow-typed/tree/72d88e1dffd146f2f6fc1424bd7c9d991632cd3f#flow-typed-install-package-specification---ignoredeps-deps
For example
I don't want to install these.
Reasons
@types/*
are unnecessary.npm install
time.The text was updated successfully, but these errors were encountered: