diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2019-04-21 17:34:18 +0200 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-04-21 11:34:18 -0400 |
commit | cd19da62d9efe37566fdeff16e37ed066edd3e3a (patch) | |
tree | cefe352b922bf50395c16b525ea6276d2dfdfd49 /js | |
parent | c08075053f16e8c799c2132373a2deb6e896a9e9 (diff) |
Refactor CLI entry point (#2157)
Changes "deno --types" to "deno types"
and "deno --prefetch" to "deno prefetch"
Diffstat (limited to 'js')
-rw-r--r-- | js/main.ts | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/js/main.ts b/js/main.ts index c32f3ac9e..ad9e0e99d 100644 --- a/js/main.ts +++ b/js/main.ts @@ -15,9 +15,6 @@ import { setLocation } from "./location"; // builtin modules import * as deno from "./deno"; -// TODO(kitsonk) remove with `--types` below -import libDts from "gen/cli/lib/lib.deno_runtime.d.ts!string"; - export default function denoMain(name?: string): void { const startResMsg = os.start(name); @@ -31,13 +28,6 @@ export default function denoMain(name?: string): void { os.exit(0); } - // handle `--types` - // TODO(kitsonk) move to Rust fetching from compiler - if (startResMsg.typesFlag()) { - console.log(libDts); - os.exit(0); - } - const mainModule = startResMsg.mainModule(); if (mainModule) { assert(mainModule.length > 0); |