Skip to content

Instantly share code, notes, and snippets.

@todgru
Last active March 22, 2023 19:26
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 todgru/2169b2e8d935d73543cfea6deb3a9b07 to your computer and use it in GitHub Desktop.
Save todgru/2169b2e8d935d73543cfea6deb3a9b07 to your computer and use it in GitHub Desktop.
recursively find package.json files that are missing a "test" script, exclude "node_modules" from the search
find . -type d -name "node_modules" -prune -o -name "package.json" -type f -exec grep -L '"test"' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment