diff --git a/dev-packages/application-manager/src/generator/backend-generator.ts b/dev-packages/application-manager/src/generator/backend-generator.ts index a5df1bdb80b46..8974ec5ed850b 100644 --- a/dev-packages/application-manager/src/generator/backend-generator.ts +++ b/dev-packages/application-manager/src/generator/backend-generator.ts @@ -192,6 +192,8 @@ serverAddress.then((addressInfo) => { }); globalThis.serverAddress = serverAddress; +globalThis.extensionInfo = ${this.prettyStringify(this.pck.extensionPackages.map(({ name, version }) => ({ name, version }))) }; + `; } diff --git a/packages/core/src/node/application-server.ts b/packages/core/src/node/application-server.ts index e80212248293d..df3996b6bb1b0 100644 --- a/packages/core/src/node/application-server.ts +++ b/packages/core/src/node/application-server.ts @@ -26,9 +26,9 @@ export class ApplicationServerImpl implements ApplicationServer { protected readonly applicationPackage: ApplicationPackage; getExtensionsInfos(): Promise { - const extensions = this.applicationPackage.extensionPackages; - const infos: ExtensionInfo[] = extensions.map(extension => ({ name: extension.name, version: extension.version })); - return Promise.resolve(infos); + // @ts-expect-error + const appInfo: ExtensionInfo[] = globalThis.extensionInfo; + return Promise.resolve(appInfo); } getApplicationInfo(): Promise {