This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # lockfile-diff.sh — Human-readable package-lock.json diff | |
| # | |
| # Usage: | |
| # ./lockfile-diff.sh # compare HEAD~1 → working tree | |
| # ./lockfile-diff.sh main # compare main → working tree | |
| # ./lockfile-diff.sh main feature-branch # compare two branches | |
| # | |
| # Requires: jq | |
| # Compatible with macOS bash 3.2+ |