Skip to content

Instantly share code, notes, and snippets.

@rido-min
Created November 28, 2024 00:21
Show Gist options
  • Save rido-min/6cfb87eaf5e2cb72079ec4ce3c32e2c4 to your computer and use it in GitHub Desktop.
Save rido-min/6cfb87eaf5e2cb72079ec4ce3c32e2c4 to your computer and use it in GitHub Desktop.
clean-lock-file.sh
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