Skip to content

Commit

Permalink
Assert that zowe.jfrog.io is removed from shrinkwrap
Browse files Browse the repository at this point in the history
Signed-off-by: Timothy Johnson <[email protected]>
  • Loading branch information
t1m0thyj committed Nov 21, 2024
1 parent 05f1eb4 commit 54db6f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/repackage_tar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ npmDeps=`node -e "package = require('./package.json');
Object.entries(package.peerDependencies || {}).forEach(([name, version]) => console.log(name + '@' + version));"`
for pkgSpec in $npmDeps; do
echo "Validating dependency $pkgSpec..."
npm view $pkgSpec || exit 1
npm view $pkgSpec || die "Validation of $pkgSpec failed"
done

# Update npm-shrinkwrap.json if necessary
Expand All @@ -57,6 +57,7 @@ if [ -e "npm-shrinkwrap.json" ]; then

# Rewrite the shrinkwrap file with only production dependencies and public npm resolved URLs
node "../../scripts/rewrite-shrinkwrap.js"
(cat npm-shrinkwrap.json | grep -q zowe.jfrog.io) && die "Private registry found in shrinkwrap file"
fi

npm pack
Expand Down

0 comments on commit 54db6f1

Please sign in to comment.