parent
f42cef3ff8
commit
d75c7a9f9e
@ -1,20 +0,0 @@ |
||||
console.log('Starting utilities') |
||||
process.parentPort.postMessage('start utilities') |
||||
import { spawn } from 'node:child_process'; |
||||
const ls = spawn('ls', ['-la']) |
||||
ls.stdout.on('data', (data) => { |
||||
console.log(`stdout: ${data}`); |
||||
process.parentPort.postMessage(data.toString()) |
||||
}); |
||||
|
||||
process.parentPort.postMessage(JSON.stringify(process.env)) |
||||
|
||||
const ls2 = spawn('yarn', ['-v']) |
||||
ls2.stdout.on('data', (data) => { |
||||
console.log(`stdout: ${data}`); |
||||
process.parentPort.postMessage(data.toString()) |
||||
}); |
||||
ls.stderr.on('data', (data) => { |
||||
console.error(`stderr: ${data}`); |
||||
process.parentPort.postMessage(data.toString()) |
||||
}) |
Loading…
Reference in new issue