Skip to content

Commit

Permalink
Move TypeScript to devDependencies to reduce bundle size (#926)
Browse files Browse the repository at this point in the history
Because we are publishing the post-transpiled, already-bundled 
files to npm, it's safe to hide TypeScript behind the developer
dependencies. Supporting evidence:

https://withblue.ink/2020/06/07/is-this-a-dependency-or-devdependency.html#shipping-npm-packages
  • Loading branch information
chadoh authored Mar 6, 2024
1 parent 0e4a0b0 commit 53ebe3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@
"taffydb": "^2.7.3",
"terser-webpack-plugin": "^5.3.10",
"ts-node": "^10.9.2",
"typescript": "^5.3.3",
"webpack": "^5.90.1",
"webpack-cli": "^5.0.1"
},
Expand All @@ -148,7 +149,6 @@
"eventsource": "^2.0.2",
"randombytes": "^2.1.0",
"toml": "^3.0.0",
"typescript": "^5.3.3",
"urijs": "^1.19.1"
}
}

0 comments on commit 53ebe3e

Please sign in to comment.