Skip to content

Commit

Permalink
script to check that all bundled deps are actually used
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Aug 4, 2020
1 parent 731df81 commit 938369b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/check-deps.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const { bundleDependencies } = require('./package.json')
const { spawnSync } = require('child_process')
for (const dep of bundleDependencies) {
const lib = spawnSync('git', ['grep', dep, 'lib'])
const bin = spawnSync('git', ['grep', dep, 'bin'])
if (!lib.stdout.length && !bin.stdout.length) {
console.log(dep)
}
}

0 comments on commit 938369b

Please sign in to comment.