fix: node_modules should be part of hidden files

This commit is contained in:
Andre Medeiros 2019-03-07 15:38:23 -05:00 committed by Iuri Matias
parent 88a41e7c28
commit 0b530f308b
1 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ class Pipeline {
name,
dirname: dir,
path: path.join(dir, name),
isHidden: name.indexOf('.') === 0,
isHidden: (name.indexOf('.') === 0 || name === "node_modules"),
children: utils.fileTreeSort(walk(path.join(dir, name), filelist))
};
}
@ -115,7 +115,7 @@ class Pipeline {
isRoot,
path: path.join(dir, name),
dirname: dir,
isHidden: name.indexOf('.') === 0
isHidden: (name.indexOf('.') === 0 || name === "node_modules")
};
});
const files = utils.fileTreeSort(walk(this.fs.dappPath()));