chore(deps): update dependency execa to v7 - abandoned
This MR contains the following updates:
Package | Type | Update | Change | Pending |
---|---|---|---|---|
execa | devDependencies | major | 5.1.1 -> 7.1.0 |
7.1.1 |
Release Notes
sindresorhus/execa
v7.1.0
Features
- Add
$
method to write Node.js scripts like zx. For more information, please see this blog post, this section and this page. Thanks @aaronccasanova for this great feature!
import {$} from 'execa';
const branch = await $`git branch --show-current`;
await $`dep deploy --branch=${branch}`;
- Add
.pipeStdout()
,.pipeStderr()
and.pipeAll()
methods to redirectstdout
/stderr
to a file, a stream or another process.
// Similar to `echo unicorns > stdout.txt` in Bash
await execa('echo', ['unicorns']).pipeStdout('stdout.txt');
// Similar to `echo unicorns 2> stdout.txt` in Bash
await execa('echo', ['unicorns']).pipeStderr('stderr.txt');
// Similar to `echo unicorns &> stdout.txt` in Bash
await execa('echo', ['unicorns'], {all: true}).pipeAll('all.txt');
- Add
inputFile
option to use a file asstdin
.
// Similar to `cat < stdin.txt` in Bash
const {stdout} = await execa('cat', {inputFile: 'stdin.txt'});
console.log(stdout);
//=> 'unicorns'
- Add
verbose
option to print each command onstderr
before executing it. This can also be enabled by setting theNODE_DEBUG=execa
environment variable in the current process.
> node file.js
unicorns
rainbows
> NODE_DEBUG=execa node file.js
[16:50:03.305] echo unicorns
unicorns
[16:50:03.308] echo rainbows
rainbows
v7.0.0
Breaking
Fixes
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.
Edited by HTML-validate