Skip to content

Commit

Permalink
fix: duplicated deps resolved (for jobInit and jobTerm) (#289)
Browse files Browse the repository at this point in the history
Co-authored-by: Allan Bowe <[email protected]>
  • Loading branch information
saadjutt01 and allanbowe authored Dec 2, 2020
1 parent f7b2420 commit 2382ab1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
Expand Down

0 comments on commit 2382ab1

Please sign in to comment.