summaryrefslogtreecommitdiff
path: root/deno2/js/pbjs_hack.py
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2018-06-12 22:05:49 +0200
committerBert Belder <bertbelder@gmail.com>2018-06-13 00:31:38 +0200
commit1676822888ef6c75bb2afff3b7a93d030d63f2ea (patch)
tree5a785a6af7713f0fc44d5c9a02062dfc046f09fa /deno2/js/pbjs_hack.py
parent36f657c0d2961a8a798b0f209ff40aabd169b766 (diff)
deno2: build on Windows
Diffstat (limited to 'deno2/js/pbjs_hack.py')
-rwxr-xr-xdeno2/js/pbjs_hack.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/deno2/js/pbjs_hack.py b/deno2/js/pbjs_hack.py
index a4cc7dfb3..354f3a5a1 100755
--- a/deno2/js/pbjs_hack.py
+++ b/deno2/js/pbjs_hack.py
@@ -11,9 +11,9 @@ import os
js_path = os.path.dirname(os.path.realpath(__file__))
#bin_path = os.path.join(js_path, "deno_protobufjs", "bin")
-bin_path = os.path.join(js_path, "node_modules", ".bin")
-pbjs_bin = os.path.join(bin_path, "pbjs")
-pbts_bin = os.path.join(bin_path, "pbts")
+pbjs_path = os.path.join(js_path, "node_modules", "protobufjs", "bin")
+pbjs_bin = os.path.join(pbjs_path, "pbjs")
+pbts_bin = os.path.join(pbjs_path, "pbts")
msg_pbjs_out = os.path.join(js_path, "msg.pb.js")
msg_pbts_out = os.path.join(js_path, "msg.pb.d.ts")
assert os.path.exists(pbjs_bin)
@@ -29,10 +29,11 @@ def touch(fname):
open(fname, 'a').close()
subprocess.check_call([
+ "node",
pbjs_bin,
#"--dependency=./deno_protobufjs/minimal",
"--target=static-module",
- "--wraper=commonjs",
+ "--wrapper=commonjs",
"--out=" + msg_pbjs_out,
proto_in
])