Skip to content

Commit

Permalink
earlier defaulting
Browse files Browse the repository at this point in the history
  • Loading branch information
zoe-codez committed Oct 4, 2024
1 parent 051d6b5 commit d70e776
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/services/configuration.extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,18 @@ export function Configuration({
internal.utils.object.set(configuration, [library, key].join("."), definitions[key].default);
});
configDefinitions.set(library, definitions);
const bootConfig = internal.boot.options?.configuration ?? {};
if (library in bootConfig) {
const project = library as keyof typeof bootConfig;
const config = bootConfig[project];
Object.keys(config).forEach(key => {
internal.utils.object.set(
configuration,
[project, key].join("."),
config[key as keyof typeof config],
);
});
}
}

return {
Expand Down

0 comments on commit d70e776

Please sign in to comment.