question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No install @types packages of devDependencies (Like the `flow-typed --ignoredeps-deps dev`)

See original GitHub issue

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.

  "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.
  • (Maybe a little) These increase npm install time.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
jeffijoecommented, Jul 13, 2019

Gotcha! I’m a bit swamped right now so not sure when I’ll get to it.

1reaction
mubaidrcommented, Jul 13, 2019

I think this flag is like:

--ignoredeps deps ignore dependencies, prod dependencies --ignoredeps devdeps ignore dependencies, dev dependcies

i.e. ignoredeps is short for ignore dependencies and value shows which type (prod, dev, peer etc) of dependencies to ignore

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found