diff --git a/package.json b/package.json index 7e70b38ae..0fd7fdf8a 100644 --- a/package.json +++ b/package.json @@ -60,5 +60,6 @@ }, "resolutions": { "@builder/babel-preset-ice": "1.0.1" - } -} + }, + "repository": "git@github.com:alibaba/lowcode-engine.git" +} \ No newline at end of file diff --git a/packages/designer/src/plugin/plugin-context.ts b/packages/designer/src/plugin/plugin-context.ts index edb515543..7ddc3a5bd 100644 --- a/packages/designer/src/plugin/plugin-context.ts +++ b/packages/designer/src/plugin/plugin-context.ts @@ -41,6 +41,7 @@ export default class PluginContext implements ILowCodePluginContext, ILowCodePlu options: IPluginContextOptions, contextApiAssembler: ILowCodePluginContextApiAssembler, ) { + contextApiAssembler.assembleApis(this); this.plugins = plugins; const { pluginName = 'anonymous' } = options; this.logger = getLogger({ level: 'warn', bizName: `designer:plugin:${pluginName}` }); @@ -49,8 +50,6 @@ export default class PluginContext implements ILowCodePluginContext, ILowCodePlu if (enhancePluginContextHook) { enhancePluginContextHook(this); } - - contextApiAssembler.assembleApis(this); } setPreference(