Skip to content

Commit 1f93c17

Browse files
fix(deps): upgrade execa to v8 (#6301)
* fix(deps): upgrade execa to v8 * chore: adjust referenced execa types --------- Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent 7049453 commit 1f93c17

File tree

10 files changed

+57
-45
lines changed

10 files changed

+57
-45
lines changed

package-lock.json

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

packages/build-info/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"@types/node": "^14.18.53",
6161
"@types/semver": "^7.3.13",
6262
"@vitest/ui": "^0.34.0",
63-
"execa": "^7.0.0",
63+
"execa": "^8.0.0",
6464
"memfs": "^4.0.0",
6565
"node-fetch": "^3.3.1",
6666
"typescript": "^5.0.0",

packages/build/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"ansi-escapes": "^6.0.0",
8383
"chalk": "^5.0.0",
8484
"clean-stack": "^5.0.0",
85-
"execa": "^7.0.0",
85+
"execa": "^8.0.0",
8686
"fdir": "^6.0.1",
8787
"figures": "^5.0.0",
8888
"filter-obj": "^5.0.0",

packages/config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"cron-parser": "^4.1.0",
6464
"deepmerge": "^4.2.2",
6565
"dot-prop": "^7.0.0",
66-
"execa": "^7.0.0",
66+
"execa": "^8.0.0",
6767
"fast-safe-stringify": "^2.0.7",
6868
"figures": "^5.0.0",
6969
"filter-obj": "^5.0.0",

packages/edge-bundler/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"common-path-prefix": "^3.0.0",
6565
"env-paths": "^3.0.0",
6666
"esbuild": "0.25.4",
67-
"execa": "^7.0.0",
67+
"execa": "^8.0.0",
6868
"find-up": "^6.3.0",
6969
"get-package-name": "^2.2.0",
7070
"get-port": "^7.0.0",

packages/git-utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
},
5151
"license": "MIT",
5252
"dependencies": {
53-
"execa": "^7.0.0",
53+
"execa": "^8.0.0",
5454
"map-obj": "^5.0.0",
5555
"micromatch": "^4.0.2",
5656
"moize": "^6.1.3",

packages/run-utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
},
5151
"license": "MIT",
5252
"dependencies": {
53-
"execa": "^7.0.0"
53+
"execa": "^8.0.0"
5454
},
5555
"devDependencies": {
5656
"@types/node": "^14.18.53",

packages/run-utils/src/main.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import process from 'process'
22

3-
import { execa, ExecaChildProcess, execaCommand, Options } from 'execa'
3+
import { execa, ExecaChildProcess, execaCommand, Options, CommonOptions } from 'execa'
44

55
/** Allow running local binaries by default */
6-
const DEFAULT_OPTIONS: Partial<Options<string>> = { preferLocal: true }
6+
const DEFAULT_OPTIONS: Partial<CommonOptions> = { preferLocal: true }
77

88
/** Run a command, with arguments being an array */
9-
export const run = (file: string, args?: string[] | object, options?: Record<string, unknown>) => {
9+
export const run = (file: string, args?: string[] | object, options?: Options) => {
1010
const [argsA, optionsA] = parseArgs(args, options)
1111
const optionsB = { ...DEFAULT_OPTIONS, ...optionsA }
1212
const childProcess = execa(file, argsA, optionsB)
@@ -15,9 +15,9 @@ export const run = (file: string, args?: string[] | object, options?: Record<str
1515
}
1616

1717
/** Run a command, with file + arguments being a single string */
18-
export const runCommand = (command: string, options: Options<string>) => {
18+
export const runCommand = (command: string, options: Options) => {
1919
const optionsA = { ...DEFAULT_OPTIONS, ...options }
20-
const childProcess = execaCommand(command, optionsA)
20+
const childProcess = execaCommand(command, options)
2121
redirectOutput(childProcess, optionsA)
2222
return childProcess
2323
}
@@ -38,7 +38,7 @@ const parseArgs = function (args, options) {
3838
/**
3939
* Redirect output by default, unless specified otherwise
4040
* */
41-
const redirectOutput = (childProcess: ExecaChildProcess<string>, options: Options<string>) => {
41+
const redirectOutput = (childProcess: ExecaChildProcess<string>, options: CommonOptions) => {
4242
if (options.stdio !== undefined || options.stdout !== undefined || options.stderr !== undefined) {
4343
return
4444
}

packages/testing/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"ava": "^5.0.0",
2424
"c8": "^10.0.0",
2525
"cpy": "^11.0.0",
26-
"execa": "^7.0.0",
26+
"execa": "^8.0.0",
2727
"fast-safe-stringify": "^2.0.7",
2828
"figures": "^5.0.0",
2929
"get-bin-path": "^11.0.0",

packages/zip-it-and-ship-it/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"copy-file": "^11.0.0",
5252
"es-module-lexer": "^1.0.0",
5353
"esbuild": "0.25.4",
54-
"execa": "^7.0.0",
54+
"execa": "^8.0.0",
5555
"fast-glob": "^3.3.2",
5656
"filter-obj": "^5.0.0",
5757
"find-up": "^6.0.0",

0 commit comments

Comments
 (0)