Skip to content

Commit

Permalink
deps: execa@^5.1.1->^7.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat committed May 9, 2023
1 parent 839be83 commit c6b77fc
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 461 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"dependencies": {
"diff": "^5.0.0",
"execa": "^5.1.1",
"execa": "^7.1.1",
"semver": "^7.3.5",
"yargs": "^17.0.1"
},
Expand Down
4 changes: 2 additions & 2 deletions src/update-changelog.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { strict as assert } from 'assert';
import execa from 'execa';
import { execa } from 'execa';
import { parseChangelog } from './parse-changelog';
import { ChangeCategory, Version } from './constants';
import type Changelog from './changelog';
Expand Down Expand Up @@ -285,7 +285,7 @@ export async function updateChangelog({
* @returns An array of the non-empty lines returned by the command.
*/
async function runCommand(command: string, args: string[]): Promise<string[]> {
return (await execa(command, [...args])).stdout
return ((await execa(command, [...args])).stdout as string)
.trim()
.split('\n')
.filter((line) => line !== '');
Expand Down

0 comments on commit c6b77fc

Please sign in to comment.