Skip to content

Commit

Permalink
fix publish.js
Browse files Browse the repository at this point in the history
  • Loading branch information
elbakerino committed Aug 20, 2024
1 parent 67e1be0 commit 091c060
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const pkg = pkgJson.name

console.log('checking version for ' + pkg + ' (' + pkgJsonVersion + ')')
exec('npm view ' + pkg + ' version', [], (version, err) => {
if(err.startsWith('npm ERR! code E404')) {
if(err.startsWith('npm ERR! code E404') || err.startsWith('npm error code E404') || err.startsWith('npm error 404')) {
console.log(' > not existing yet')
} else if(err.length) {
console.error('npm view error:', err)
Expand Down

0 comments on commit 091c060

Please sign in to comment.