Skip to content

Commit

Permalink
fix: save sources order after glob
Browse files Browse the repository at this point in the history
  • Loading branch information
yarastqt committed Aug 24, 2020
1 parent e2823eb commit 24b4a0a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/load-theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ export async function loadTheme(
result.whitepaper = { ...result.whitepaper, ...theme.whitepaper }
}

result.sources.push(theme.sources.map((filePath) => join(cwd, filePath)))
for (const source of theme.sources) {
// Makes array of arrays with each source for save order after glob.
result.sources.push([join(cwd, source)])
}

return result
}

0 comments on commit 24b4a0a

Please sign in to comment.