Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ember package.json: dependencies vs devDependencies

What is the difference of having the packages under the dependencies or devDependencies in the package.json?

How does that impact in the final build?

Sounds quite simple, but I don't have it clear to which packages to put in each section. Even similar addon's documentations vary as well, some say to use --save and others --save-dev, which confuses me.

like image 761
Alvaro Castro Avatar asked Dec 17 '25 12:12

Alvaro Castro


1 Answers

In an ember app all your dependencies will go under devDependencies since you build the app via the ember cli and you do not include the app in another project.

For addons the story is a bit different, if your addon exposes any functionality from a package then that package has to be under dependencies.

like image 138
Patsy Issa Avatar answered Dec 19 '25 07:12

Patsy Issa