If I use yarn add <package-name>
, Yarn will install both dependencies and devDependencies of <package-name>
.
Is it intended?
I checked the documentation but I couldn't find a way to prevent installing the development dependencies.
devDependencies
are the dependencies that were used to compile the sources of one package, therefore if I am in a production environment I don't need them.