From 7784cc2c1537a23b8b8ffa634b1a9b1ddf88886a Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 12 Jun 2018 06:36:01 +0200 Subject: Fix protobufjs snapshotting. --- deno2/js/pbjs_hack.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'deno2/js/pbjs_hack.py') diff --git a/deno2/js/pbjs_hack.py b/deno2/js/pbjs_hack.py index f0cfa01a5..a4cc7dfb3 100755 --- a/deno2/js/pbjs_hack.py +++ b/deno2/js/pbjs_hack.py @@ -10,6 +10,7 @@ import sys 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") @@ -28,8 +29,8 @@ def touch(fname): open(fname, 'a').close() subprocess.check_call([ - "node", pbjs_bin, + #"--dependency=./deno_protobufjs/minimal", "--target=static-module", "--wraper=commonjs", "--out=" + msg_pbjs_out, @@ -45,5 +46,4 @@ subprocess.check_call([ ]) assert os.path.exists(msg_pbts_out) - touch(stamp_file) -- cgit v1.2.3