mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 04:39:10 +00:00
Add deno2 prototype from external repo.
This commit is contained in:
parent
fe9ea6dcf8
commit
110ddab670
24 changed files with 4668 additions and 0 deletions
14
deno2/js/run_node.py
Executable file
14
deno2/js/run_node.py
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env python
|
||||
"""
|
||||
gn can only run python scripts.
|
||||
Also Node programs except to be run with cwd = $root_dir/js so it can resolve
|
||||
node_modules.
|
||||
"""
|
||||
import subprocess
|
||||
import sys
|
||||
import os
|
||||
|
||||
js_path = os.path.dirname(os.path.realpath(__file__))
|
||||
os.chdir(js_path)
|
||||
args = ["node"] + sys.argv[1:]
|
||||
sys.exit(subprocess.call(args))
|
Loading…
Add table
Add a link
Reference in a new issue