From 0b530f308b98ad67276559a3b64b67d1400e80ac Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Thu, 7 Mar 2019 15:38:23 -0500 Subject: [PATCH] fix: node_modules should be part of hidden files --- packages/embark/src/lib/modules/pipeline/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/embark/src/lib/modules/pipeline/index.js b/packages/embark/src/lib/modules/pipeline/index.js index 1248d2900..b1cb30fb6 100644 --- a/packages/embark/src/lib/modules/pipeline/index.js +++ b/packages/embark/src/lib/modules/pipeline/index.js @@ -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()));