mirror of
https://github.com/denoland/deno.git
synced 2025-10-02 15:14:33 +00:00
parent
31eda28a64
commit
c1f430966a
7 changed files with 6 additions and 5 deletions
2
BUILD.gn
2
BUILD.gn
|
@ -101,7 +101,7 @@ run_node("bundle") {
|
||||||
sources = [
|
sources = [
|
||||||
"js/main.ts",
|
"js/main.ts",
|
||||||
"js/msg_generated.ts",
|
"js/msg_generated.ts",
|
||||||
"js/package.json", # The `browserslist` field controls Babel behavior.
|
"package.json", # The `browserslist` field controls Babel behavior.
|
||||||
]
|
]
|
||||||
outputs = [
|
outputs = [
|
||||||
out_dir + "main.js",
|
out_dir + "main.js",
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
../third_party/node_modules
|
|
|
@ -26,8 +26,9 @@ def symlink(target, name, target_is_dir=False):
|
||||||
os.symlink(target, name)
|
os.symlink(target, name)
|
||||||
|
|
||||||
|
|
||||||
js_path = os.path.dirname(os.path.realpath(__file__))
|
root_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
|
||||||
target_abs = os.path.join(js_path, "node_modules")
|
third_party_path = os.path.join(root_path, "third_party")
|
||||||
|
target_abs = os.path.join(third_party_path, "node_modules")
|
||||||
target_rel = os.path.relpath(target_abs)
|
target_rel = os.path.relpath(target_abs)
|
||||||
|
|
||||||
if not os.path.exists("node_modules"):
|
if not os.path.exists("node_modules"):
|
||||||
|
|
1
node_modules
Symbolic link
1
node_modules
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
third_party/node_modules
|
2
third_party/package.json
vendored
2
third_party/package.json
vendored
|
@ -1 +1 @@
|
||||||
../js/package.json
|
../package.json
|
Loading…
Add table
Add a link
Reference in a new issue