Skip to content

Commit

Permalink
Ignore hidden files when recursing project dirs
Browse files Browse the repository at this point in the history
Closes #63
  • Loading branch information
alxndrsn committed Mar 21, 2018
1 parent e35ef46 commit 80a2dca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "medic-conf",
"version": "1.11.6",
"version": "1.11.7",
"description": "Configure Medic Mobile deployments",
"main": "index.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/lib/sync-fs.js
Expand Up @@ -35,6 +35,7 @@ function recurseFiles(dir, files) {
if(!files) files = [];

fs.readdirSync(dir)
.filter(name => !name.startsWith('.'))
.forEach(name => {
const f = path.join(dir, name);
try {
Expand Down

0 comments on commit 80a2dca

Please sign in to comment.