This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| execa | ^6.1.0 -> ^7.2.0 |
Release Notes
sindresorhus/execa (execa)
v7.2.0
v7.1.1
Features
- Improve error message when
$.sync(options)`command`is used instead of$(options).sync`command`(#551)
Bug fixes
- Fix argument concatenation when using
$`command argument${value}`(#553) - Fix default value of the
stdinoption when using$`command`: it should beinherit(#550)
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/stderrto 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
inputFileoption 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
verboseoption to print each command onstderrbefore executing it. This can also be enabled by setting theNODE_DEBUG=execaenvironment 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
rainbowsv7.0.0
Breaking
Fixes
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.