Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kumavis committed Sep 23, 2019
1 parent 8e7dbca commit ddb1a25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions development/show-deps-install-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ readInstalled('./', { dev: true }, function (err, data) {
Object.entries(deps).forEach(([packageName, packageData]) => {
const packageScripts = packageData.scripts || {}
const scriptKeys = Reflect.ownKeys(packageScripts)

const hasInstallScript = installScripts.some(installKey => scriptKeys.includes(installKey))
if (!hasInstallScript) return

Expand All @@ -22,7 +22,7 @@ readInstalled('./', { dev: true }, function (err, data) {
const scriptNames = Reflect.ownKeys(matchingScripts)

const relativePath = path.relative(process.cwd(), packageData.path)

console.log(`${packageName}: ${relativePath} ${scriptNames}`)
})
})

0 comments on commit ddb1a25

Please sign in to comment.