No install @types packages of devDependencies (Like the `flow-typed --ignoredeps-deps dev`)
See original GitHub issueThank 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.
"devDependencies": {
"eslint-config-prettier": "6.0.0",
"prettier": "1.18.2"
},
Reasons
- I don’t want to increase the number of managed packages.
- Packages of devDependencies are not used in product code.
- Because those
@types/*
are unnecessary.
- Because those
- (Maybe a little) These increase
npm install
time.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
How do I decide whether @types/* goes into `dependencies ...
Let's say you're developing a package "A" that have @types/some-module package in devDependencies . For some reason you're exporting the ...
Read more >Error: Required TypeScript & Types packages, despite being ...
By moving all devDependencies into dependencies I've temporarily solved the issue, but this feels like a very incorrect solution. 1
Read more >How to Install Types for Packages -- newline - Fullstack.io
The biggest repository with type declarations is DefinitelyTyped. It contains type declarations for packages like React, Redux, Mobx, ...
Read more >it looks like you're trying to use typescript but do not have the ...
The issue is that typescript is installed as a dev dependency, which wouldn't be installed in a production environment. Inside of your package.json,...
Read more >Flow – JavaScript Type Checker | Object Computing, Inc.
It can catch some errors without specifying types by using type inference and flow analysis. Flow "precisely tracks the types of variables as...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Gotcha! I’m a bit swamped right now so not sure when I’ll get to it.
I think this flag is like:
--ignoredeps deps
ignore dependencies,prod
dependencies--ignoredeps devdeps
ignore dependencies,dev
dependciesi.e. ignoredeps is short for ignore dependencies and value shows which type (prod, dev, peer etc) of dependencies to ignore