mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 04:39:10 +00:00
deno2: compile in TS, build protobuf
This commit is contained in:
parent
356fd18c73
commit
b3003535be
7 changed files with 495 additions and 2979 deletions
|
@ -1,14 +1,18 @@
|
|||
#!/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)
|
||||
node_modules_path = os.path.join(js_path, "node_modules")
|
||||
|
||||
# root_out_dir
|
||||
if not os.path.exists("node_modules"):
|
||||
os.symlink(node_modules_path, "node_modules")
|
||||
|
||||
args = ["node"] + sys.argv[1:]
|
||||
sys.exit(subprocess.call(args))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue