Commit eeddf4c4 authored by David Sveningsson's avatar David Sveningsson

fix(config): expand `<rootDir>` in elements

parent c271a044
Pipeline #83929732 passed with stages
in 7 minutes and 15 seconds
......@@ -200,16 +200,19 @@ export class Config {
continue;
}
let filename: string;
/* try searching builtin metadata */
const filename = `${root}/elements/${entry}.json`;
filename = `${root}/elements/${entry}.json`;
if (fs.existsSync(filename)) {
metaTable.loadFromFile(filename);
continue;
}
/* try as regular file */
if (fs.existsSync(entry)) {
metaTable.loadFromFile(entry);
filename = entry.replace("<rootDir>", this.rootDir);
if (fs.existsSync(filename)) {
metaTable.loadFromFile(filename);
continue;
}
......
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