Skip to content

Commit

Permalink
log parseNpmVersionOutput (#240)
Browse files Browse the repository at this point in the history
* log npmVersionStr

* log parseNpmVersionOutput
  • Loading branch information
phips28 authored Mar 14, 2024
1 parent 5a68494 commit d47703f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ function logError(error) {

function parseNpmVersionOutput(output) {
const npmVersionStr = output.trim().split(EOL).pop();
console.log('[parseNpmVersionOutput] output:', output);
console.log('[parseNpmVersionOutput] npmVersionStr:', npmVersionStr);
const version = npmVersionStr.replace(/^v/, '');
return version;
}
Expand Down

0 comments on commit d47703f

Please sign in to comment.