mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 04:11:25 -07:00
* npm - add '--production` support to 'npm ci' flag
* add changelog fragement for 4299
* Add backticks
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 43af053d73
)
Co-authored-by: Daniel Miller <watermelonpizza@melonstudios.net>
This commit is contained in:
parent
92c41a5f55
commit
14d43b10c1
3 changed files with 75 additions and 1 deletions
|
@ -175,7 +175,7 @@ class Npm(object):
|
|||
|
||||
if self.glbl:
|
||||
cmd.append('--global')
|
||||
if self.production and ('install' in cmd or 'update' in cmd):
|
||||
if self.production and ('install' in cmd or 'update' in cmd or 'ci' in cmd):
|
||||
cmd.append('--production')
|
||||
if self.ignore_scripts:
|
||||
cmd.append('--ignore-scripts')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue