Skip to content

Commit

Permalink
confirm package is available after being published
Browse files Browse the repository at this point in the history
  • Loading branch information
dave4420 committed Mar 31, 2024
1 parent d73d9b2 commit dfcb04f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/publish-npm-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,10 @@ for package in $(find . -type d -exec sh -c '[ -f {}/package.json ]' \; -print)
if ! npm publish $package ; then
printf 'Error code %d; hopefully already published?\n' $?
fi
npm view "$(
node -e "
const package = require('$package/package.json');
process.stdout.write(`${package.name}@${package.version}\n`);
"
)"
done

0 comments on commit dfcb04f

Please sign in to comment.