Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: ensure_dependencies.py

Issue 29574577: Issue 5856 - Pass --no-package-lock argument to npm install (Closed)
Patch Set: Don't ignore the package-lock.json file Created Oct. 12, 2017, 1:18 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ensure_dependencies.py
diff --git a/ensure_dependencies.py b/ensure_dependencies.py
index b1aedfde38ef4a12145691aa313dd2635bf6b613..bcf3716667e8de212add06dd53b6ab6c6a8a5d59 100755
--- a/ensure_dependencies.py
+++ b/ensure_dependencies.py
@@ -271,7 +271,8 @@ def resolve_npm_dependencies(target, vcs):
return
try:
- cmd = ['npm', 'install', '--only=production', '--loglevel=warn']
+ cmd = ['npm', 'install', '--only=production',
+ '--loglevel=warn', '--no-package-lock']
subprocess.check_output(cmd, cwd=target)
repo_types[vcs].ignore(os.path.join(target, 'node_modules'), target)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld