Skip to content

Instantly share code, notes, and snippets.

@Segmentational
Created November 10, 2022 17:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Segmentational/e8ef4e05d69788c8e8b149f052361a00 to your computer and use it in GitHub Desktop.
Save Segmentational/e8ef4e05d69788c8e8b149f052361a00 to your computer and use it in GitHub Desktop.
Node Directory + JS Clean-Up
find . -name "node_modules" -type "d" -exec "rm -rf {} || true" \;
find . -name "*.js" -type "f" -exec rm -f {} \;
find . -name "*.js.map" -type "f" -exec rm -f {} \;
find . -name "*.d.ts" -type "f" -exec rm -f {} \;
find . -name "*.ts.map" -type "f" -exec rm -f {} \;
find . -name "*.d.ts.map" -type "f" -exec rm -f {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment