I've been working on an angular project and whenever I wanted a new package, I edited bower.json manually and added the package to devdependencies
and then ran bower install
to get the dependency installed.
I never really looked at the name of the section I was adding it to, but recently I ran bower install <somepackage> -S
and it created a new section called dependencies
. Ohhh!!! They're supposed to go there.
I looked it up and apparently devdependencies
is for development dependencies, and can be excluded during a production build and is primarily intended for packages that support testing etc. However dependencies
is included in both dev and production builds, and is intended for packages that will be in the final production build.
So now I have a lot of "production" packages under devdependencies
. What is the best way to move them to dependencies
without breaking anything?
bower install --save-dev
– Bocanegra