diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-08-30 11:11:33 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-30 11:11:33 -0400 |
commit | c370f749b2260cc1d8970b1dcdc63ff00008e26d (patch) | |
tree | 1eff43e71ca0a5ccaeb48a3bf891bf2fdc0712ba /tools/ts_library_builder/main.ts | |
parent | 5401cb76304ae8d3e8896f6020ba4ef25bac0bba (diff) |
Remove ts_library_builder, maintain lib.deno_runtime.d.ts by hand (#2827)
Diffstat (limited to 'tools/ts_library_builder/main.ts')
-rw-r--r-- | tools/ts_library_builder/main.ts | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/tools/ts_library_builder/main.ts b/tools/ts_library_builder/main.ts deleted file mode 100644 index e4e2e73ed..000000000 --- a/tools/ts_library_builder/main.ts +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. -import * as path from "path"; -import { main as buildRuntimeLib } from "./build_library"; - -// this is very simplistic argument parsing, just enough to integrate into -// the build scripts, versus being very robust -let basePath = process.cwd(); -let buildPath = path.join(basePath, "target", "debug"); -let outFile = path.join(buildPath, "gen", "lib", "lib.d.ts"); -let inline: string[] = []; -let debug = false; -let silent = false; - -process.argv.forEach((arg, i, argv) => { - switch (arg) { - case "--basePath": - basePath = path.resolve(argv[i + 1]); - break; - case "--buildPath": - buildPath = path.resolve(argv[i + 1]); - break; - case "--inline": - inline = argv[i + 1].split(",").map(filename => { - return path.resolve(filename); - }); - break; - case "--outFile": - outFile = path.resolve(argv[i + 1]); - break; - case "--debug": - debug = true; - break; - case "--silent": - silent = true; - break; - } -}); - -buildRuntimeLib({ - basePath, - buildPath, - debug, - inline, - inputs: [ - "node_modules/typescript/lib/lib.esnext.d.ts", - "js/deno.ts", - "js/globals.ts" - ], - declareAsLet: ["onmessage"], - outFile, - silent -}); |