From 82aabb657a8fbaf107e58214490fdd129db3ae6b Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Wed, 8 Jul 2020 19:26:39 +1000 Subject: feat: add --no-check option (#6456) This commit adds a "--no-check" option to following subcommands: - "deno cache" - "deno info" - "deno run" - "deno test" The "--no-check" options allows to skip type checking step and instead directly transpiles TS sources to JS sources. This solution uses `ts.transpileModule()` API and is just an interim solution before implementing it fully in Rust. --- std/log/handlers.ts | 2 +- std/log/logger.ts | 2 +- std/log/mod.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'std/log') diff --git a/std/log/handlers.ts b/std/log/handlers.ts index 0efa7cc26..e09dc648c 100644 --- a/std/log/handlers.ts +++ b/std/log/handlers.ts @@ -1,6 +1,6 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { getLevelByName, LevelName, LogLevels } from "./levels.ts"; -import { LogRecord } from "./logger.ts"; +import type { LogRecord } from "./logger.ts"; import { red, yellow, blue, bold } from "../fmt/colors.ts"; import { existsSync, exists } from "../fs/exists.ts"; import { BufWriterSync } from "../io/bufio.ts"; diff --git a/std/log/logger.ts b/std/log/logger.ts index 05e83dc77..482047f2a 100644 --- a/std/log/logger.ts +++ b/std/log/logger.ts @@ -5,7 +5,7 @@ import { getLevelName, LevelName, } from "./levels.ts"; -import { BaseHandler } from "./handlers.ts"; +import type { BaseHandler } from "./handlers.ts"; export interface LogRecordOptions { msg: string; diff --git a/std/log/mod.ts b/std/log/mod.ts index ed94725c4..9565749aa 100644 --- a/std/log/mod.ts +++ b/std/log/mod.ts @@ -8,7 +8,7 @@ import { RotatingFileHandler, } from "./handlers.ts"; import { assert } from "../_util/assert.ts"; -import { LevelName } from "./levels.ts"; +import type { LevelName } from "./levels.ts"; export { LogLevels, LevelName } from "./levels.ts"; export { Logger } from "./logger.ts"; -- cgit v1.2.3