Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions scripts/write-lockfile-hash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,11 @@ SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )"
# Change to the parent directory of the script
cd "$SCRIPT_DIR/.."

# Skip when running as an installed dependency,
# the published package contains no package-lock.json.
if [ ! -f package-lock.json ]; then
exit 0
fi

# Record the hash of the lockfile we just installed against
sha256sum package-lock.json | awk '{print $1}' > "$LOCK_HASH_FILE"
Loading