fix: run postinstall after pm add

This commit is contained in:
chenos 2024-01-18 11:23:57 +08:00
parent fe260d0371
commit acabb9cbf0

View File

@ -676,6 +676,7 @@ export class PluginManager {
await this.add(opts['name'] || urlOrName, opts, true);
}
await this.app.emitStartedEvent();
await execa('yarn', ['nocobase', 'postinstall']);
}
async addByNpm(options: { packageName: string; name?: string; registry: string; authToken?: string }) {