AdmitHub / meteor-buildpack-horse

Heroku buildpack for Meteor v1.0+. The horse one.
MIT License
641 stars 586 forks source link

Force install of devDependencies #182

Open elledienne opened 7 years ago

elledienne commented 7 years ago

The idea of the buildpack is to install devDependencies even if the NODE_ENV is set to production simply avoiding the flag --production on npm install.

Unfortunately this doesn't work since npm never installs devDependencies if the environment is set to production. Official documentation states:

With the --production flag (or when the NODE_ENV environment variable is set to production), npm will not install modules listed in devDependencies. (link)

To fix that we can run npm install as development.

elledienne commented 7 years ago

Any news on this one? @yourcelf