diff --git a/src/util.ts b/src/util.ts index bb50abae5..acbd75c87 100644 --- a/src/util.ts +++ b/src/util.ts @@ -1,8 +1,13 @@ import path from "path" import stream from "stream" +import { inspect } from "util"; -export const isDebug = true; +export const isDebug = process.env['NODE_ENV'] === 'development'; + +export const customInspectSymbol = Symbol.for('nodejs.util.inspect.custom') + +export type InspectFn = typeof inspect; export function first(iter: Iterator): T | undefined { return iter.next().value;