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>([ ...@@ -19,11 +19,11 @@ const platforms = new Map<string, Platform>([
/* eslint-enable global-require */ /* eslint-enable global-require */
// eslint-disable-next-line import/no-mutable-exports // eslint-disable-next-line import/no-mutable-exports
export let platform: Platform; export const platform: Platform = {} as any;
// TODO: lazy load platform // TODO: lazy load platform
export function setPlatformApi(name: string) { export function setPlatformApi(name: string) {
platform = platforms.get(name); Object.assign(platform, platforms.get(name));
} }
export async function initPlatform(config: RenovateConfig) { export async function initPlatform(config: RenovateConfig) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment