From cd19da62d9efe37566fdeff16e37ed066edd3e3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Sun, 21 Apr 2019 17:34:18 +0200 Subject: Refactor CLI entry point (#2157) Changes "deno --types" to "deno types" and "deno --prefetch" to "deno prefetch" --- js/main.ts | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'js') 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); -- cgit v1.2.3