Fix issues with npm install of google-closure-compiler installing all dev packages as well. (#793)

This commit is contained in:
juj
2021-04-27 00:38:00 +03:00
committed by GitHub
parent 4282d5d44b
commit 16ee884464

View File

@@ -1411,7 +1411,7 @@ def emscripten_npm_install(tool, directory):
print('Running post-install step: npm install', closure_compiler_native)
try:
subprocess.check_output(
[npm, 'install', closure_compiler_native],
[npm, 'install', '--production', '--no-optional', closure_compiler_native],
cwd=directory, stderr=subprocess.STDOUT, env=env,
universal_newlines=True)
except subprocess.CalledProcessError as e: