Skip to content

Commit

Permalink
Merge pull request #72 from btecu/bugsbunny
Browse files Browse the repository at this point in the history
Fix @github/exec invocation for npm version
  • Loading branch information
mansona authored Apr 3, 2023
2 parents d4548d8 + 0cf1f6d commit 255fe53
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23532,8 +23532,10 @@ async function installDependencies() {
const packageLock = JSON.parse(external_fs_.readFileSync('package-lock.json'));
let npmVersion = '';
await (0,exec.exec)('npm', ['-v'], {
stdout: (data) => {
npmVersion += data.toString();
listeners: {
stdout: (data) => {
npmVersion += data.toString();
},
},
});

Expand Down
6 changes: 4 additions & 2 deletions lib/helpers.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,10 @@ export async function installDependencies() {
const packageLock = JSON.parse(fs.readFileSync('package-lock.json'));
let npmVersion = '';
await exec('npm', ['-v'], {
stdout: (data) => {
npmVersion += data.toString();
listeners: {
stdout: (data) => {
npmVersion += data.toString();
},
},
});

Expand Down

0 comments on commit 255fe53

Please sign in to comment.