mirror of
https://github.com/denoland/deno.git
synced 2025-10-02 23:24:37 +00:00
Fix protobufjs snapshotting.
This commit is contained in:
parent
dd48f8095c
commit
7784cc2c15
12 changed files with 1786 additions and 2125 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue