Skip to content

Commit 2d54a99

Browse files
committed
Update execa
1 parent efe7837 commit 2d54a99

File tree

4 files changed

+525
-325
lines changed

4 files changed

+525
-325
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"@metamask/action-utils": "^1.0.0",
2929
"@metamask/utils": "^8.2.1",
3030
"debug": "^4.3.4",
31-
"execa": "^5.1.1",
31+
"execa": "^8.0.1",
3232
"pony-cause": "^2.1.9",
3333
"semver": "^7.5.4",
3434
"which": "^3.0.0",
@@ -43,7 +43,7 @@
4343
"@metamask/eslint-config-nodejs": "^10.0.0",
4444
"@metamask/eslint-config-typescript": "^10.0.0",
4545
"@types/debug": "^4.1.7",
46-
"@types/jest": "^29.5.1",
46+
"@types/jest": "^29.5.10",
4747
"@types/jest-when": "^3.5.2",
4848
"@types/node": "^17.0.23",
4949
"@types/rimraf": "^4.0.5",
@@ -59,7 +59,7 @@
5959
"eslint-plugin-jsdoc": "^39.6.2",
6060
"eslint-plugin-node": "^11.1.0",
6161
"eslint-plugin-prettier": "^4.2.1",
62-
"jest": "^29.5.0",
62+
"jest": "^29.7.0",
6363
"jest-it-up": "^3.0.0",
6464
"jest-when": "^3.5.2",
6565
"nanoid": "^3.3.4",

src/misc-utils.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import which from 'which';
2-
import execa from 'execa';
2+
import { execa, Options } from 'execa';
33
import createDebug from 'debug';
44
import { ErrorWithCause } from 'pony-cause';
55
import { isObject } from '@metamask/utils';
@@ -130,7 +130,7 @@ export async function resolveExecutable(
130130
export async function runCommand(
131131
command: string,
132132
args?: readonly string[] | undefined,
133-
options?: execa.Options<string> | undefined,
133+
options?: Options | undefined,
134134
): Promise<void> {
135135
await execa(command, args, options);
136136
}
@@ -149,7 +149,7 @@ export async function runCommand(
149149
export async function getStdoutFromCommand(
150150
command: string,
151151
args?: readonly string[] | undefined,
152-
options?: execa.Options<string> | undefined,
152+
options?: Options | undefined,
153153
): Promise<string> {
154154
return (await execa(command, args, options)).stdout.trim();
155155
}
@@ -167,7 +167,7 @@ export async function getStdoutFromCommand(
167167
export async function getLinesFromCommand(
168168
command: string,
169169
args?: readonly string[] | undefined,
170-
options?: execa.Options<string> | undefined,
170+
options?: Options | undefined,
171171
): Promise<string[]> {
172172
const { stdout } = await execa(command, args, options);
173173
return stdout.split('\n').filter((value) => value !== '');

tests/functional/helpers/repo.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import fs from 'fs';
22
import path from 'path';
3-
import execa, { ExecaChildProcess, Options as ExecaOptions } from 'execa';
3+
import { execa, ExecaChildProcess, Options as ExecaOptions } from 'execa';
44
import deepmerge from 'deepmerge';
55
import { isErrorWithCode } from '../../helpers.js';
66
import { debug, sleepFor } from './utils.js';
@@ -178,7 +178,7 @@ export default abstract class Repo {
178178
async runCommand(
179179
executableName: string,
180180
args?: readonly string[] | undefined,
181-
options?: ExecaOptions<string> | undefined,
181+
options?: ExecaOptions | undefined,
182182
): Promise<ExecaChildProcess<string>> {
183183
const { env, ...remainingOptions } =
184184
options === undefined ? { env: {} } : options;

0 commit comments

Comments
 (0)