Skip to content

Commit

Permalink
👌 Improve find package.json
Browse files Browse the repository at this point in the history
Co-Authored-By: Benoît Zugmeyer <benoit.zugmeyer@datadoghq.com>
  • Loading branch information
bcaudan and BenoitZugmeyer authored Feb 10, 2020
1 parent a8708d4 commit 78110ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/check-licenses.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async function main() {
}

async function findPackageJsonPaths() {
const { stdout } = await exec('find . -name "package.json" | grep -v node_modules')
const { stdout } = await exec('find . -path '*/node_modules/*' -prune -o -name "package.json" -print')
return stdout.trim().split('\n')
}

Expand Down

0 comments on commit 78110ad

Please sign in to comment.