From 2382ab17fe2aef5473d9dbba1eb0024eaa080966 Mon Sep 17 00:00:00 2001 From: saadjutt01 Date: Wed, 2 Dec 2020 20:44:14 +0500 Subject: [PATCH] fix: duplicated deps resolved (for jobInit and jobTerm) (#289) Co-authored-by: Allan Bowe <4420615+allanbowe@users.noreply.github.com> --- src/commands/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/build.js b/src/commands/build.js index c5f78a1dd..676c8b897 100644 --- a/src/commands/build.js +++ b/src/commands/build.js @@ -660,7 +660,7 @@ export async function getBuildVars() { async function getDependencies(filePaths) { let dependenciesContent = [] - await asyncForEach(filePaths, async (filePath) => { + await asyncForEach([...new Set(filePaths)], async (filePath) => { const depFileContent = await readFile(filePath) dependenciesContent.push(depFileContent) })