Skip to content

Commit

Permalink
chore: reorganize symlinks
Browse files Browse the repository at this point in the history
resolves denoland#332
  • Loading branch information
kt3k authored and ry committed Jul 6, 2018
1 parent 31eda28 commit c1f4309
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ run_node("bundle") {
sources = [
"js/main.ts",
"js/msg_generated.ts",
"js/package.json", # The `browserslist` field controls Babel behavior.
"package.json", # The `browserslist` field controls Babel behavior.
]
outputs = [
out_dir + "main.js",
Expand Down
1 change: 0 additions & 1 deletion js/node_modules

This file was deleted.

5 changes: 3 additions & 2 deletions js/run_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ def symlink(target, name, target_is_dir=False):
os.symlink(target, name)


js_path = os.path.dirname(os.path.realpath(__file__))
target_abs = os.path.join(js_path, "node_modules")
root_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
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)

if not os.path.exists("node_modules"):
Expand Down
1 change: 1 addition & 0 deletions node_modules
File renamed without changes.
2 changes: 1 addition & 1 deletion third_party/package.json
File renamed without changes.

0 comments on commit c1f4309

Please sign in to comment.