(x: T)
| 16 | const DEBUG = typeof process.env.DEBUG !== "undefined"; |
| 17 | |
| 18 | export function debug<T>(x: T): T { |
| 19 | if (DEBUG) { |
| 20 | console.log(x); |
| 21 | } |
| 22 | return x; |
| 23 | } |
| 24 | |
| 25 | export function failWith(message: string, obj: any): never { |
| 26 | obj.cwd = process.cwd(); |
no outgoing calls
searching dependent graphs…