Skip to content

Instantly share code, notes, and snippets.

@skratchdot
Created September 5, 2019 15:13
Show Gist options
  • Select an option

  • Save skratchdot/ce22c0e71263f5254b476c938952ba58 to your computer and use it in GitHub Desktop.

Select an option

Save skratchdot/ce22c0e71263f5254b476c938952ba58 to your computer and use it in GitHub Desktop.
cleanlocks - a bash script to clean all the packge-lock.json files in a monorepo
#!/usr/bin/env bash
find . -type f -name package-lock.json -not -regex ".*node_modules.*" -delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment