Skip to content

Commit

Permalink
fix: async config resolution scoped to project config
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien2p committed Jan 31, 2023
1 parent b121020 commit f32fe95
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/core/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,10 @@ export async function asyncLoadConfig(rootDir?: string, filename?: string): Prom
return obj;
};

const configModule = isPromise(configuration.configModule) ? await configuration.configModule : configuration.configModule
const configModule = isPromise(configuration.configModule)
? await configuration.configModule
: configuration.configModule;
configModule.projectConfig = await resolveConfigProperties(configModule.projectConfig);

return configuration.configModule
return configuration.configModule;
}

0 comments on commit f32fe95

Please sign in to comment.