diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2020-07-08 19:26:39 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-08 11:26:39 +0200 |
commit | 82aabb657a8fbaf107e58214490fdd129db3ae6b (patch) | |
tree | 1b92a346f546c5e69c3abd879abdc7728adbc11c /std/log | |
parent | 862bc2ecae3d9c3f880201d2302ca869d911eb69 (diff) |
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.
Diffstat (limited to 'std/log')
-rw-r--r-- | std/log/handlers.ts | 2 | ||||
-rw-r--r-- | std/log/logger.ts | 2 | ||||
-rw-r--r-- | std/log/mod.ts | 2 |
3 files changed, 3 insertions, 3 deletions
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"; |