Skip to content

Commit

Permalink
Merge pull request #2382 from brave/fix/sync-deps-audit
Browse files Browse the repository at this point in the history
check src/brave/brave_sync/extension for npm vulnerabilities
  • Loading branch information
diracdeltas authored Dec 6, 2018
2 parents 42c563b + 6051079 commit e9eb9b5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build/scripts/audit.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const util = require('../lib/util')
const baseDir = path.resolve(path.join(__dirname, '..'))
const braveDir = path.join(baseDir, 'src', 'brave')
const braveVendorDir = path.join(braveDir, 'vendor')
const syncDir = path.join(braveDir, 'components', 'brave_sync', 'extension')

/**
* Runs npm audit on a given directory located at pathname
Expand All @@ -28,3 +29,6 @@ npmAudit(braveDir)
fs.readdirSync(braveVendorDir).forEach((dir) => {
npmAudit(path.join(braveVendorDir, dir))
})
fs.readdirSync(syncDir).forEach((dir) => {
npmAudit(path.join(syncDir, dir))
})

0 comments on commit e9eb9b5

Please sign in to comment.