Closed stripedpumpkin closed 7 years ago
Unfortunately, this was a workaround to ensure that npm
installed node_modules/ember-cli/bin/ember
, so that the EmberCLI process had access to the executable.
The code that requires this hasn't changed in almost a year, which is eons in JS-time.
Do you know if newer versions of NPM require a similar workaround?
@stripedpumpkin you are correct, bower
should be declared as a dependencies
value, not a devDependencies
value in the root level package.json
.
The original suggestion stems from a misunderstanding of how NPM managed local executables.
I'm closing this for now, and will follow it up with a change to the documentation.
THANK YOU!
@stripedpumpkin related: https://github.com/thoughtbot/ember-cli-rails/pull/507
Wondering why
heroku config:set NPM_CONFIG_PRODUCTION=false
Would there be an issue separating devDependencies from Dependencies and treating ember-cli-rails as a normal dependency (and leaving the heroku flag at true)? In general there could be a few devDependencies that need not be included in the prod build.