We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
result.all
Steps to reproduce:
import { promisify } from 'util' import execa from 'execa' (async () => { const childProcess = execa('echo', ['test']) await promisify(setTimeout)(1e3) console.log('all:', (await childProcess).all); console.log('all:', (await childProcess).all); })()
$ node index.js all: test all:
Node v12.4.0 Ubuntu 19.10 Execa 2.0.0
v12.4.0
19.10
2.0.0
The text was updated successfully, but these errors were encountered:
I managed to reproduce this bug with this more minimal setup. It's based on what execa is internally doing.
execa
const childProcess = require('child_process'); const getStream = require('get-stream'); const mergeStream = require('merge-stream'); (async () => { const {stdout} = childProcess.spawn('echo', ['test']); const all = mergeStream(); all.add(stdout); console.log('all:', await getStream(all)); console.log('all:', await getStream(all)); })();
Sorry, something went wrong.
PR at #330.
Successfully merging a pull request may close this issue.
Steps to reproduce:
$ node index.js all: test all:
Node
v12.4.0
Ubuntu
19.10
Execa
2.0.0
The text was updated successfully, but these errors were encountered: