Move @types deps to devDependencies
See original GitHub issueThere is a bunch of @types packages in dependencies, seems they should not be needed by the end user, just for the sake of keeping things clean.
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (9 by maintainers)
Top Results From Across the Web
Move @types dependencies to devDependencies #862 - GitHub
Do the following deps need to be in the "dependencies" section of package.json? Can they be moved to "devDependencies" instead?
Read more >Move a module from devDependencies to ... - Stack Overflow
Shorthand to move from devDependencies to dependencies (prod): npm i <module_name> -P. If you want to do the opposite (i.e. move a module ......
Read more >npm move package from devdependencies to dependencies Code ...
Answers related to “npm move package from devdependencies to dependencies”. difference between devDependency and dependency · npm remove dev dependencies ...
Read more >Understanding and organizing dependencies in node packages
json in one of five dependency types: dependencies (default); devDependencies; peerDependencies; bundledDependencies; optionalDependencies.
Read more >Tool to tell me which @types deps should be deps, which can ...
Typically @types dependencies of a library should be dependencies, ... which @types they reference, and move the rest into devDependencies ?
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

I believe this is incorrect; for instance, you may want to use this repository programmatically to create your own customized TypeScript-enabled REPL. In such case, I believe the types need to be present for your dependent code to compile, but let me know if this is incorrect.
It depends on whether exported API uses those typings or not.
I see that https://github.com/TypeStrong/ts-node/blob/master/src/index.ts#L29 exported interfaces don’t use them.