Should TypeScript be a devDependency? (It now shows up under dependencies...) #44283
Unanswered
jasonkylefrank
asked this question in
Help
Replies: 1 comment 4 replies
-
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
After running
npx create-next-app@latest
to generate a project, I now see that TypeScript (and some related things like@types/node
,@types/react
,@types/react-dom
) are listed underdependencies
in thepackage.json
.To be clear, the TypeScript dependencies are not listed under
devDependencies
.I'm still somewhat new to TypeScript, but I would have thought that TypeScript would be a
devDependency
?Furthermore, if TypeScript is listed as a
dependency
, instead of adevDependency
does that mean that the JavaScript bundle that gets sent to the client is larger than it should be?Thanks for the help.
Beta Was this translation helpful? Give feedback.
All reactions