mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -05:00
build: fix deps for deno_runtime_declaration
This commit is contained in:
parent
42408febe8
commit
c0b8756797
3 changed files with 15 additions and 4 deletions
8
BUILD.gn
8
BUILD.gn
|
@ -184,6 +184,12 @@ run_node("deno_runtime_declaration") {
|
||||||
deps = [
|
deps = [
|
||||||
":msg_ts",
|
":msg_ts",
|
||||||
]
|
]
|
||||||
|
inputs = ts_sources + [
|
||||||
|
"tools/ts_library_builder/tsconfig.json",
|
||||||
|
"tools/ts_library_builder/main.ts",
|
||||||
|
"tools/ts_library_builder/build_library.ts",
|
||||||
|
"tools/ts_library_builder/ast_util.ts",
|
||||||
|
]
|
||||||
args = [
|
args = [
|
||||||
rebase_path("node_modules/ts-node/dist/bin.js", root_build_dir),
|
rebase_path("node_modules/ts-node/dist/bin.js", root_build_dir),
|
||||||
"--project",
|
"--project",
|
||||||
|
@ -197,7 +203,7 @@ run_node("deno_runtime_declaration") {
|
||||||
"--buildPath",
|
"--buildPath",
|
||||||
rebase_path(root_build_dir, root_build_dir),
|
rebase_path(root_build_dir, root_build_dir),
|
||||||
"--outFile",
|
"--outFile",
|
||||||
rebase_path("$out_dir/lib/lib.deno_runtime.d.ts", root_build_dir),
|
rebase_path(outputs[0], root_build_dir),
|
||||||
"--silent",
|
"--silent",
|
||||||
]
|
]
|
||||||
if (is_debug) {
|
if (is_debug) {
|
||||||
|
|
|
@ -10,15 +10,19 @@ template("bundle") {
|
||||||
out_dir + out_name + ".js",
|
out_dir + out_name + ".js",
|
||||||
out_dir + out_name + ".js.map",
|
out_dir + out_name + ".js.map",
|
||||||
]
|
]
|
||||||
|
inputs = [
|
||||||
|
"js/" + out_name + ".ts",
|
||||||
|
"rollup.config.js",
|
||||||
|
]
|
||||||
depfile = out_dir + out_name + ".d"
|
depfile = out_dir + out_name + ".d"
|
||||||
args = [
|
args = [
|
||||||
rebase_path("third_party/node_modules/rollup/bin/rollup", root_build_dir),
|
rebase_path("third_party/node_modules/rollup/bin/rollup", root_build_dir),
|
||||||
"-c",
|
"-c",
|
||||||
rebase_path("rollup.config.js", root_build_dir),
|
rebase_path("rollup.config.js", root_build_dir),
|
||||||
"-i",
|
"-i",
|
||||||
rebase_path("js/" + out_name + ".ts", root_build_dir),
|
rebase_path(inputs[0], root_build_dir),
|
||||||
"-o",
|
"-o",
|
||||||
rebase_path(out_dir + out_name + ".js", root_build_dir),
|
rebase_path(outputs[0], root_build_dir),
|
||||||
"--sourcemapFile",
|
"--sourcemapFile",
|
||||||
rebase_path("."),
|
rebase_path("."),
|
||||||
"--silent",
|
"--silent",
|
||||||
|
|
|
@ -1183,7 +1183,8 @@ mod tests {
|
||||||
|
|
||||||
let specifier = "http_test.ts";
|
let specifier = "http_test.ts";
|
||||||
let referrer = add_root!("/Users/rld/src/deno_net/");
|
let referrer = add_root!("/Users/rld/src/deno_net/");
|
||||||
let expected_module_name = file_url!("/Users/rld/src/deno_net/http_test.ts");
|
let expected_module_name =
|
||||||
|
file_url!("/Users/rld/src/deno_net/http_test.ts");
|
||||||
let expected_filename = add_root!("/Users/rld/src/deno_net/http_test.ts");
|
let expected_filename = add_root!("/Users/rld/src/deno_net/http_test.ts");
|
||||||
|
|
||||||
let (module_name, filename) =
|
let (module_name, filename) =
|
||||||
|
|
Loading…
Add table
Reference in a new issue