Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Commit

Permalink
don't match .DS_Store and similar files
Browse files Browse the repository at this point in the history
  • Loading branch information
samthor committed Oct 2, 2018
1 parent c8fafec commit 7416eb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,2 +1,3 @@
.DS_Store
node_modules/
build/
3 changes: 3 additions & 0 deletions deps/content.js
Expand Up @@ -249,6 +249,9 @@ class ContentLoader {
const matchedFiles =
globName === '*' ? dirContent : micromatch.match(dirContent, globName);
for (const raw of matchedFiles) {
if (raw.startsWith('.')) {
continue; // never match .-files
}
const fullPath = path.join(currentDir, raw);
if (isDir(fullPath)) {
recurse && pendingDir.push(fullPath);
Expand Down

0 comments on commit 7416eb3

Please sign in to comment.