Skip to content

Commit 6851109

Browse files
authored
Merge pull request #21292 from emberjs/renovate/execa-9.x
2 parents d466348 + 0c11ed6 commit 6851109

File tree

5 files changed

+10
-16
lines changed

5 files changed

+10
-16
lines changed

bin/benchmark/utils.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { fileURLToPath } from 'node:url';
55
import { basename, join } from 'node:path';
66
import { styleText } from 'node:util';
77

8-
import execa from 'execa';
8+
import { execa } from 'execa';
99
import fs from 'fs-extra';
1010
import { existsSync } from 'node:fs';
1111

bin/build-for-publishing.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@
22

33
const fs = require('fs');
44
const path = require('path');
5-
const execa = require('execa');
65
const buildInfo = require('../broccoli/build-info').buildInfo();
76

8-
function exec(command, args) {
7+
async function exec(command, args) {
8+
const { execa } = await import('execa');
99
// eslint-disable-next-line
1010
console.log(`\n\tRunning: \`${command} ${args.join(' ')}\``);
11-
let stream = execa(command, args);
12-
stream.stdout.pipe(process.stdout);
13-
return stream;
11+
return execa(command, args, { stdout: 'inherit', stderr: 'inherit' });
1412
}
1513

1614
/*

bin/run-browserstack-tests.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
/* eslint-disable no-console */
22

3-
const execa = require('execa');
43
const chalk = require('chalk');
54

6-
function run(command, args = []) {
5+
async function run(command, args = []) {
6+
const { execa } = await import('execa');
77
console.log(chalk.dim('$ ' + command + ' ' + args.join(' ')));
88

9-
let p = execa(command, args);
10-
p.stdout.pipe(process.stdout);
11-
p.stderr.pipe(process.stderr);
12-
13-
return p;
9+
return execa(command, args, { stdout: 'inherit', stderr: 'inherit' });
1410
}
1511

1612
(async function () {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
"eslint-plugin-import": "^2.31.0",
116116
"eslint-plugin-n": "^17.16.2",
117117
"eslint-plugin-qunit": "^8.1.2",
118-
"execa": "^5.1.1",
118+
"execa": "^9.0.0",
119119
"expect-type": "^0.15.0",
120120
"fs-extra": "^11.1.1",
121121
"git-repo-info": "^2.1.1",

pnpm-lock.yaml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)