Skip to content

Commit

Permalink
Filter out .bin and other folders starting with . from list of packag…
Browse files Browse the repository at this point in the history
…es (#704)
  • Loading branch information
gregmagolan authored and alexeagle committed May 22, 2019
1 parent 0652274 commit 403f21b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion internal/npm_install/generate_build_file.js
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,12 @@ function findPackages(p = 'node_modules') {

const listing = fs.readdirSync(p);

const packages = listing.filter(f => !f.startsWith('@'))
const packages = listing
// filter out scopes
.filter(f => !f.startsWith('@'))
// filter out folders such as `.bin` which can create
// issues on Windows since these are "hidden" by default
.filter(f => !f.startsWith('.'))
.map(f => path.posix.join(p, f))
.filter(f => isDirectory(f));
packages.forEach(
Expand Down

0 comments on commit 403f21b

Please sign in to comment.