Skip to content
Snippets Groups Projects
Commit cdaa5514 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix: platform assign

parent b1e1a0f8
No related branches found
No related tags found
No related merge requests found
......@@ -19,11 +19,11 @@ const platforms = new Map<string, Platform>([
/* eslint-enable global-require */
// eslint-disable-next-line import/no-mutable-exports
export let platform: Platform;
export const platform: Platform = {} as any;
// TODO: lazy load platform
export function setPlatformApi(name: string) {
platform = platforms.get(name);
Object.assign(platform, platforms.get(name));
}
export async function initPlatform(config: RenovateConfig) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment