@travetto/exec
Advanced tools
Comparing version 0.0.31 to 0.0.32
@@ -17,3 +17,3 @@ { | ||
}, | ||
"version": "0.0.31" | ||
"version": "0.0.32" | ||
} |
@@ -276,3 +276,3 @@ import * as child_process from 'child_process'; | ||
for (const { name, content } of files) { | ||
const f = [dir, name].join(path.sep); | ||
const f = path.join(dir, name); | ||
await writeFile(f, content, { mode: '755' }); | ||
@@ -279,0 +279,0 @@ } |
import { CommonProcess, ExecutionEvent } from './types'; | ||
import { AppEnv } from '@travetto/base'; | ||
@@ -35,4 +36,4 @@ export class Execution<U extends ExecutionEvent = ExecutionEvent, T extends CommonProcess = CommonProcess> { | ||
send(eventType: string, data?: any) { | ||
if (process.env.DEBUG) { | ||
console.log(process.pid, 'SENDING', eventType, data); | ||
if (AppEnv.trace) { | ||
console.trace(process.pid, 'SENDING', eventType, data); | ||
} | ||
@@ -82,4 +83,4 @@ if (this._proc.send) { | ||
const fn = (e: U) => { | ||
if (process.env.DEBUG) { | ||
console.log(process.pid, 'RECEIVING', e.type, e); | ||
if (AppEnv.trace) { | ||
console.trace(process.pid, 'RECEIVING', e.type, e); | ||
} | ||
@@ -86,0 +87,0 @@ |
22377
709