We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f50313 commit 6e56c87Copy full SHA for 6e56c87
src/index.ts
@@ -38,7 +38,9 @@ function yn (value: string | undefined) {
38
* Debugging `ts-node`.
39
*/
40
const shouldDebug = yn(process.env.TS_NODE_DEBUG)
41
-const debug = shouldDebug ? console.log.bind(console, 'ts-node') : () => undefined
+const debug = shouldDebug ?
42
+ (...args: any) => console.log(`[ts-node ${new Date().toISOString()}]`, ...args)
43
+ : () => undefined
44
const debugFn = shouldDebug ?
45
<T, U> (key: string, fn: (arg: T) => U) => {
46
let i = 0
0 commit comments