Skip to content

Commit

Permalink
Merge pull request #80 from yarastqt/yarastqt.issue-64.sources-order
Browse files Browse the repository at this point in the history
Save sources order after glob
  • Loading branch information
yarastqt authored Aug 24, 2020
2 parents e2823eb + 24b4a0a commit ab7fc11
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 ab7fc11

Please sign in to comment.