mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-29 16:57:00 +08:00
Use the bundled node binary for all npm scripts
It was previously only done for 1 out of 12 scripts. DISABLE_THIRD_PARTY_CHECK=updating Node.js wrapper No-Presubmit: true Bug: chromium:1074325 Change-Id: I18cb95af0acfcabb8b2fcb5e9e889921b0ab04db Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2247644 Commit-Queue: Mathias Bynens <mathias@chromium.org> Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
This commit is contained in:
committed by
Commit Bot
parent
bc260c0567
commit
8a163a0661
Vendored
+3
-2
@@ -24,8 +24,9 @@ def RunNode(cmd_parts):
|
||||
process = subprocess.Popen(cmd, cwd=os.getcwd())
|
||||
stdout, stderr = process.communicate()
|
||||
|
||||
if stderr:
|
||||
raise RuntimeError('%s failed: %s' % (cmd, stderr))
|
||||
if process.returncode is not 0:
|
||||
print('%s failed: %s' % (cmd, stderr))
|
||||
exit(process.returncode)
|
||||
|
||||
return stdout
|
||||
|
||||
|
||||
Reference in New Issue
Block a user