Commit d98fa282 by Dominik Prokop Committed by GitHub

grafana/toolkit: Resolve modules correctly (#21216)

parent 392819c5
......@@ -29,7 +29,8 @@ export const findModuleFiles = async (base: string, files?: string[], result?: s
result = result || [];
if (files) {
files.forEach(async file => {
await Promise.all(
files.map(async file => {
const newbase = path.join(base, file);
if (fs.statSync(newbase).isDirectory()) {
result = await findModuleFiles(newbase, await readdirPromise(newbase), result);
......@@ -40,7 +41,8 @@ export const findModuleFiles = async (base: string, files?: string[], result?: s
result.push(newbase);
}
}
});
})
);
}
return result;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment