Skip to content

Commit

Permalink
Upgrade execa 9.0.1 -> 9.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Jun 9, 2024
1 parent baf3280 commit 04d0764
Show file tree
Hide file tree
Showing 11 changed files with 91 additions and 7 deletions.
11 changes: 6 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"dependencies": {
"@types/vinyl": "^2.0.9",
"colors-option": "^6.0.0",
"execa": "^9.0.1",
"execa": "^9.2.0",
"fancy-log": "^2.0.0",
"filter-obj": "^6.1.0",
"is-plain-obj": "^4.1.0",
Expand Down
7 changes: 6 additions & 1 deletion src/exec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { execaCommand } from 'execa'
import { execa, parseCommandString } from 'execa'

import { printEcho } from './echo.js'
import { throwError } from './error.js'
Expand Down Expand Up @@ -38,3 +38,8 @@ export const streamCommand = (input, opts) => {
}
/* c8 ignore stop */
}

const execaCommand = (input, opts) => {
const [command, ...args] = parseCommandString(input)
return execa(command, args, opts)
}
6 changes: 6 additions & 0 deletions src/snapshots/build/src/echo.test.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,10 @@ Generated by [AVA](https://avajs.dev).
"failed": false,␊
"timedOut": false,␊
"isCanceled": false,␊
"isGracefullyCanceled": false,␊
"isTerminated": false,␊
"isMaxBuffer": false,␊
"isForcefullyTerminated": false,␊
"exitCode": 0,␊
"stdout": "test",␊
"stderr": "",␊
Expand All @@ -135,6 +137,7 @@ Generated by [AVA](https://avajs.dev).
"test",␊
""␊
],␊
"ipcOutput": [],␊
"pipedFrom": []␊
}␊
]␊
Expand All @@ -159,8 +162,10 @@ Generated by [AVA](https://avajs.dev).
"failed": false,␊
"timedOut": false,␊
"isCanceled": false,␊
"isGracefullyCanceled": false,␊
"isTerminated": false,␊
"isMaxBuffer": false,␊
"isForcefullyTerminated": false,␊
"exitCode": 0,␊
"stdout": "test",␊
"stderr": "",␊
Expand All @@ -169,6 +174,7 @@ Generated by [AVA](https://avajs.dev).
"test",␊
""␊
],␊
"ipcOutput": [],␊
"pipedFrom": []␊
}␊
]␊
Expand Down
Binary file modified src/snapshots/build/src/echo.test.js.snap
Binary file not shown.
27 changes: 27 additions & 0 deletions src/snapshots/build/src/options/debug.test.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -483,8 +483,10 @@ Generated by [AVA](https://avajs.dev).
"failed": false,␊
"timedOut": false,␊
"isCanceled": false,␊
"isGracefullyCanceled": false,␊
"isTerminated": false,␊
"isMaxBuffer": false,␊
"isForcefullyTerminated": false,␊
"exitCode": 0,␊
"stdout": "test",␊
"stderr": "",␊
Expand All @@ -493,6 +495,7 @@ Generated by [AVA](https://avajs.dev).
"test",␊
""␊
],␊
"ipcOutput": [],␊
"pipedFrom": []␊
}␊
]␊
Expand All @@ -517,8 +520,10 @@ Generated by [AVA](https://avajs.dev).
"failed": false,␊
"timedOut": false,␊
"isCanceled": false,␊
"isGracefullyCanceled": false,␊
"isTerminated": false,␊
"isMaxBuffer": false,␊
"isForcefullyTerminated": false,␊
"exitCode": 0,␊
"stdout": "test",␊
"stderr": "",␊
Expand All @@ -527,6 +532,7 @@ Generated by [AVA](https://avajs.dev).
"test",␊
""␊
],␊
"ipcOutput": [],␊
"pipedFrom": []␊
}␊
]␊
Expand All @@ -550,8 +556,10 @@ Generated by [AVA](https://avajs.dev).
"failed": false,␊
"timedOut": false,␊
"isCanceled": false,␊
"isGracefullyCanceled": false,␊
"isTerminated": false,␊
"isMaxBuffer": false,␊
"isForcefullyTerminated": false,␊
"exitCode": 0,␊
"stdout": "test",␊
"stderr": "",␊
Expand All @@ -560,6 +568,7 @@ Generated by [AVA](https://avajs.dev).
"test",␊
""␊
],␊
"ipcOutput": [],␊
"pipedFrom": []␊
}␊
]␊
Expand All @@ -583,8 +592,10 @@ Generated by [AVA](https://avajs.dev).
"failed": false,␊
"timedOut": false,␊
"isCanceled": false,␊
"isGracefullyCanceled": false,␊
"isTerminated": false,␊
"isMaxBuffer": false,␊
"isForcefullyTerminated": false,␊
"exitCode": 0,␊
"stdout": "test",␊
"stderr": "",␊
Expand All @@ -593,6 +604,7 @@ Generated by [AVA](https://avajs.dev).
"test",␊
""␊
],␊
"ipcOutput": [],␊
"pipedFrom": []␊
}␊
]␊
Expand All @@ -617,8 +629,10 @@ Generated by [AVA](https://avajs.dev).
"failed": false,␊
"timedOut": false,␊
"isCanceled": false,␊
"isGracefullyCanceled": false,␊
"isTerminated": false,␊
"isMaxBuffer": false,␊
"isForcefullyTerminated": false,␊
"exitCode": 0,␊
"stdout": "test",␊
"stderr": "",␊
Expand All @@ -627,6 +641,7 @@ Generated by [AVA](https://avajs.dev).
"test",␊
""␊
],␊
"ipcOutput": [],␊
"pipedFrom": []␊
}␊
]␊
Expand All @@ -651,8 +666,10 @@ Generated by [AVA](https://avajs.dev).
"failed": false,␊
"timedOut": false,␊
"isCanceled": false,␊
"isGracefullyCanceled": false,␊
"isTerminated": false,␊
"isMaxBuffer": false,␊
"isForcefullyTerminated": false,␊
"exitCode": 0,␊
"stdout": "test",␊
"stderr": "",␊
Expand All @@ -661,6 +678,7 @@ Generated by [AVA](https://avajs.dev).
"test",␊
""␊
],␊
"ipcOutput": [],␊
"pipedFrom": []␊
}␊
]␊
Expand All @@ -685,8 +703,10 @@ Generated by [AVA](https://avajs.dev).
"failed": false,␊
"timedOut": false,␊
"isCanceled": false,␊
"isGracefullyCanceled": false,␊
"isTerminated": false,␊
"isMaxBuffer": false,␊
"isForcefullyTerminated": false,␊
"exitCode": 0,␊
"stdout": "test",␊
"stderr": "",␊
Expand All @@ -695,6 +715,7 @@ Generated by [AVA](https://avajs.dev).
"test",␊
""␊
],␊
"ipcOutput": [],␊
"pipedFrom": []␊
}␊
]␊
Expand All @@ -719,8 +740,10 @@ Generated by [AVA](https://avajs.dev).
"failed": false,␊
"timedOut": false,␊
"isCanceled": false,␊
"isGracefullyCanceled": false,␊
"isTerminated": false,␊
"isMaxBuffer": false,␊
"isForcefullyTerminated": false,␊
"exitCode": 0,␊
"stdout": "test",␊
"stderr": "",␊
Expand All @@ -729,6 +752,7 @@ Generated by [AVA](https://avajs.dev).
"test",␊
""␊
],␊
"ipcOutput": [],␊
"pipedFrom": []␊
}␊
]␊
Expand All @@ -753,8 +777,10 @@ Generated by [AVA](https://avajs.dev).
"failed": false,␊
"timedOut": false,␊
"isCanceled": false,␊
"isGracefullyCanceled": false,␊
"isTerminated": false,␊
"isMaxBuffer": false,␊
"isForcefullyTerminated": false,␊
"exitCode": 0,␊
"stdout": "test",␊
"stderr": "",␊
Expand All @@ -763,6 +789,7 @@ Generated by [AVA](https://avajs.dev).
"test",␊
""␊
],␊
"ipcOutput": [],␊
"pipedFrom": []␊
}␊
]␊
Expand Down
Binary file modified src/snapshots/build/src/options/debug.test.js.snap
Binary file not shown.
15 changes: 15 additions & 0 deletions src/snapshots/build/src/options/main.test.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -477,8 +477,10 @@ Generated by [AVA](https://avajs.dev).
"failed": false,␊
"timedOut": false,␊
"isCanceled": false,␊
"isGracefullyCanceled": false,␊
"isTerminated": false,␊
"isMaxBuffer": false,␊
"isForcefullyTerminated": false,␊
"exitCode": 0,␊
"stdout": "test",␊
"stderr": "",␊
Expand All @@ -487,6 +489,7 @@ Generated by [AVA](https://avajs.dev).
"test",␊
""␊
],␊
"ipcOutput": [],␊
"pipedFrom": []␊
}␊
]␊
Expand Down Expand Up @@ -562,8 +565,10 @@ Generated by [AVA](https://avajs.dev).
"failed": false,␊
"timedOut": false,␊
"isCanceled": false,␊
"isGracefullyCanceled": false,␊
"isTerminated": false,␊
"isMaxBuffer": false,␊
"isForcefullyTerminated": false,␊
"exitCode": 0,␊
"stdout": "test",␊
"stderr": "",␊
Expand All @@ -572,6 +577,7 @@ Generated by [AVA](https://avajs.dev).
"test",␊
""␊
],␊
"ipcOutput": [],␊
"pipedFrom": []␊
}␊
]␊
Expand Down Expand Up @@ -699,8 +705,10 @@ Generated by [AVA](https://avajs.dev).
"failed": false,␊
"timedOut": false,␊
"isCanceled": false,␊
"isGracefullyCanceled": false,␊
"isTerminated": false,␊
"isMaxBuffer": false,␊
"isForcefullyTerminated": false,␊
"exitCode": 0,␊
"stdout": "test",␊
"stderr": "",␊
Expand All @@ -709,6 +717,7 @@ Generated by [AVA](https://avajs.dev).
"test",␊
""␊
],␊
"ipcOutput": [],␊
"pipedFrom": []␊
}␊
]␊
Expand All @@ -732,8 +741,10 @@ Generated by [AVA](https://avajs.dev).
"failed": false,␊
"timedOut": false,␊
"isCanceled": false,␊
"isGracefullyCanceled": false,␊
"isTerminated": false,␊
"isMaxBuffer": false,␊
"isForcefullyTerminated": false,␊
"exitCode": 0,␊
"stdout": "test",␊
"stderr": "",␊
Expand All @@ -742,6 +753,7 @@ Generated by [AVA](https://avajs.dev).
"test",␊
""␊
],␊
"ipcOutput": [],␊
"pipedFrom": []␊
}␊
]␊
Expand Down Expand Up @@ -821,8 +833,10 @@ Generated by [AVA](https://avajs.dev).
"failed": false,␊
"timedOut": false,␊
"isCanceled": false,␊
"isGracefullyCanceled": false,␊
"isTerminated": false,␊
"isMaxBuffer": false,␊
"isForcefullyTerminated": false,␊
"exitCode": 0,␊
"stdout": "CLI version: 1.0.0\\nLocal version: 1.0.0",␊
"stderr": "",␊
Expand All @@ -831,6 +845,7 @@ Generated by [AVA](https://avajs.dev).
"CLI version: 1.0.0\\nLocal version: 1.0.0",␊
""␊
],␊
"ipcOutput": [],␊
"pipedFrom": []␊
}␊
]␊
Expand Down
Binary file modified src/snapshots/build/src/options/main.test.js.snap
Binary file not shown.
Loading

0 comments on commit 04d0764

Please sign in to comment.