Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ci) verify package-lock has no extraneous dependencies #9030

Merged
merged 7 commits into from
Dec 20, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
no-pager
  • Loading branch information
alxndrsn committed Dec 16, 2024
commit 37cc886f879ce16b09d58c1d92dcdda36347f522
4 changes: 2 additions & 2 deletions bin/verify-package-lock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ lockfile=package-lock.json
log() { echo >&2 "[verify-package-lock] $*"; }

log "Pruning dependencies..."
npm prune
npm prune --fund=false

log "Checking for changes to $lockfile..."
if [[ "$(git status --porcelain -- "$lockfile")" != "" ]]; then
git diff -- "$lockfile"
git --no-pager diff -- "$lockfile"
log "!!!"
log "!!! Unexpected changes to $lockfile found; see above"
log "!!!"
Expand Down
Loading