I have a silly question regarding the @types dependencies in the package.json file:
In the following URL it is explained that the types should be installed
as runtime dependency npm install --save @types/lodash
TS 2.x d.ts Consumption
But to me is makes more sense to install the @types/....
packages
as dev dependency npm install --save-dev @types/lodash
Any thoughts on this?
Use --save
when you are developing a module/library and wish to share the @types
dependencies, otherwise use --save-dev
.
some context: https://github.com/Microsoft/types-publisher/issues/81
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With