mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 23:16:26 +00:00
fix: platform assign
This commit is contained in:
parent
b1e1a0f822
commit
cdaa5514c4
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue