diff --git a/scripts/publish-npm.sh b/scripts/publish-npm.sh index 37bdb8ae..ec840631 100755 --- a/scripts/publish-npm.sh +++ b/scripts/publish-npm.sh @@ -5,7 +5,8 @@ function publish_npm() { local lib=$1 - LOCAL_SHASUM=$(npm show @dfinity/"$lib" dist.shasum) + LOCAL_SHASUM=$(npm pack -w packages/"$lib" --json | jq '.[] | .shasum' | sed -r 's/^"|"$//g') + NPM_TARBALL=$(npm show @dfinity/"$lib" dist.tarball) NPM_SHASUM=$(curl -s "$NPM_TARBALL" 2>&1 | shasum | cut -f1 -d' ')