diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2020-08-12 11:01:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-12 12:01:36 +0200 |
commit | 81ce4499e7da7baf421b85b4a188d1a63569cab4 (patch) | |
tree | 04258e9763850f32f3300a063e32bb8ace5b6a60 /std | |
parent | 58f86e063ab4d3e022b94f8f3c6a6a796ee9f749 (diff) |
fix: Make std work with isolatedModules (#7016)
Diffstat (limited to 'std')
-rw-r--r-- | std/log/logger.ts | 2 | ||||
-rw-r--r-- | std/log/mod.ts | 3 | ||||
-rw-r--r-- | std/node/global.ts | 2 | ||||
-rw-r--r-- | std/tsconfig_test.json | 2 |
4 files changed, 6 insertions, 3 deletions
diff --git a/std/log/logger.ts b/std/log/logger.ts index ef4bfd58f..d1e1d9755 100644 --- a/std/log/logger.ts +++ b/std/log/logger.ts @@ -3,8 +3,8 @@ import { LogLevels, getLevelByName, getLevelName, - LevelName, } from "./levels.ts"; +import type { LevelName } from "./levels.ts"; import type { BaseHandler } from "./handlers.ts"; export interface LogRecordOptions { diff --git a/std/log/mod.ts b/std/log/mod.ts index 3960a65a3..10feb04b1 100644 --- a/std/log/mod.ts +++ b/std/log/mod.ts @@ -10,7 +10,8 @@ import { import { assert } from "../_util/assert.ts"; import type { LevelName } from "./levels.ts"; -export { LogLevels, LevelName } from "./levels.ts"; +export { LogLevels } from "./levels.ts"; +export type { LevelName } from "./levels.ts"; export { Logger } from "./logger.ts"; export class LoggerConfig { diff --git a/std/node/global.ts b/std/node/global.ts index 0cb6b8b06..1049f8ba1 100644 --- a/std/node/global.ts +++ b/std/node/global.ts @@ -7,3 +7,5 @@ Object.defineProperty(globalThis, Symbol.toStringTag, { // eslint-disable-next-line @typescript-eslint/no-explicit-any (globalThis as any)["global"] = globalThis; + +export {}; diff --git a/std/tsconfig_test.json b/std/tsconfig_test.json index 1dbf69fb2..8dee5fa2a 100644 --- a/std/tsconfig_test.json +++ b/std/tsconfig_test.json @@ -1,5 +1,5 @@ { "compilerOptions": { - "importsNotUsedAsValues": "error" + "isolatedModules": true } } |