Skip to content

Commit

Permalink
Remove npm view "json" arg so that 16.17 does not throw when checki…
Browse files Browse the repository at this point in the history
…ng for next version:

npm/cli#4724
  • Loading branch information
robwalch committed Sep 10, 2022
1 parent 6216ab9 commit 415fc2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/check-already-published.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function versionPublished() {
// npm view returns empty string if package doesn't exist
return !!require('child_process')
.execSync(
'npm view ' + packageJson.name + '@' + packageJson.version + ' --json'
'npm view ' + packageJson.name + '@' + packageJson.version
)
.toString()
.trim();
Expand Down

0 comments on commit 415fc2a

Please sign in to comment.