googleapis / synthtool

Apache License 2.0
87 stars 82 forks source link

chore(node): use NODE_ENV instead of flags to only install prod deps #1988

Closed ddelgrosso1 closed 1 month ago

ddelgrosso1 commented 1 month ago

The --production flag that was being used is not up to date with more recent versions of npm. For example npm 6.x uses --only and npm 8.x uses --omit. Probably better to set NODE_ENV to production instead of trying to keep up with the flags.