You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've just hit an interesting bug with how npm ci is currently being used. The current setup ignores NODE_ENV=production, and explicitly uses NPM_CONFIG_PRODUCTION to drive whether devDependencies should be installed, which doesn't match how npm ci works.
I think the fix for this is to remove the explicit handling of --production during install, so it's handled explicitly by npm, and how it wants to install dependencies based on arguments. This makes sure it matches how it works in non-heroku environments, such as CI.
Perhaps related to #522
I've just hit an interesting bug with how
npm ci
is currently being used. The current setup ignoresNODE_ENV=production
, and explicitly usesNPM_CONFIG_PRODUCTION
to drive whetherdevDependencies
should be installed, which doesn't match hownpm ci
works.I think the fix for this is to remove the explicit handling of
--production
during install, so it's handled explicitly bynpm
, and how it wants to install dependencies based on arguments. This makes sure it matches how it works in non-heroku environments, such as CI.heroku-buildpack-nodejs/lib/dependencies.sh
Line 182 in 11caac6
The text was updated successfully, but these errors were encountered: