fix: platform assign

This commit is contained in:
Rhys Arkins 2019-09-09 06:50:08 +02:00
parent b1e1a0f822
commit cdaa5514c4

View file

@ -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) {