Created
November 28, 2024 00:21
-
-
Save rido-min/6cfb87eaf5e2cb72079ec4ce3c32e2c4 to your computer and use it in GitHub Desktop.
clean-lock-file.sh
This file contains 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
cp package-lock.json package-lock.json.bak | |
jq 'walk(if type == "object" and .link != true then del(.resolved, .integrity) else . end)' package-lock.json.bak > package-lock.json | |
rm package-lock.json.bak | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment