Skip to content

Commit b9a4d13

Browse files
authored
Run npm install as part of install.py (#24568)
1 parent d8dda21 commit b9a4d13

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/install.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ def copy_emscripten(target):
8484
shutil.copy2(full, os.path.join(target, root, f), follow_symlinks=False)
8585

8686

87+
def npm_install(target):
88+
subprocess.check_call(['npm', 'ci', '--omit=dev'], cwd=target)
89+
90+
8791
def main():
8892
parser = argparse.ArgumentParser(description=__doc__)
8993
parser.add_argument('-v', '--verbose', action='store_true', help='verbose',
@@ -97,6 +101,7 @@ def main():
97101
logging.basicConfig(level=logging.DEBUG if args.verbose else logging.INFO)
98102
os.makedirs(target)
99103
copy_emscripten(target)
104+
npm_install(target)
100105
if os.path.isdir('.git'):
101106
# Add revision flag only if the source directory is a Git repository
102107
# and not a source archive

0 commit comments

Comments
 (0)