From 24b4a0accfd93a6d2f8385863919704ca1e01c1e Mon Sep 17 00:00:00 2001 From: Eugene Date: Mon, 24 Aug 2020 15:28:14 +0300 Subject: [PATCH] fix: save sources order after glob --- src/core/load-theme.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/load-theme.ts b/src/core/load-theme.ts index 22a5e56..1be0b70 100644 --- a/src/core/load-theme.ts +++ b/src/core/load-theme.ts @@ -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 }