fix: preset plugins

This commit is contained in:
chenos 2023-09-27 09:55:18 +08:00
parent 6beae90806
commit 01271598fc

View File

@ -77,14 +77,14 @@ export class PresetNocoBase extends Plugin {
}
get allPlugins() {
return this.builtInPlugins
return this.getBuiltInPlugins()
.map((name) => {
const packageName = PluginManager.getPackageName(name);
const packageJson = PluginManager.getPackageJson(packageName);
return { name, packageName, enabled: true, builtIn: true, version: packageJson.version } as any;
})
.concat(
this.localPlugins.map((name) => {
this.getLocalPlugins().map((name) => {
const packageName = PluginManager.getPackageName(name);
const packageJson = PluginManager.getPackageJson(packageName);
return { name, packageName, version: packageJson.version };