fix: rewrite aliased config keys

This commit is contained in:
cha0s 2022-03-14 13:24:00 -05:00
parent 090762fd5c
commit 01b25c3464

View File

@ -127,6 +127,15 @@ export default class ServerFlecks extends Flecks {
});
}
}
// Rewrite aliased config keys.
// eslint-disable-next-line no-param-reassign
config = Object.fromEntries(
Object.entries(config)
.map(([key, value]) => {
const index = key.indexOf(':');
return [-1 !== index ? key.slice(0, index) : key, value];
}),
);
const paths = Object.keys(resolver);
// Load RCs.
const rcs = this.loadRcs(resolver);