Do not call hooks during migration of plugins

This commit is contained in:
Stefan Müller 2024-01-02 13:40:10 +01:00 committed by SamTV12345
parent f5990ac04e
commit fe9d6ec178

View file

@ -48,12 +48,12 @@ const migratePluginsFromNodeModules = async () => {
// that are not included in `package.json` (which is expected to not exist).
const cmd = ['npm', 'ls', '--long', '--json', '--depth=0', '--no-production'];
const {dependencies = {}} = JSON.parse(await runCmd(cmd, {stdio: [null, 'string']}));
await persistInstalledPlugins();
await Promise.all(Object.entries(dependencies).map(async ([pkg, info]) => {
if (pkg.startsWith(plugins.prefix) && pkg !== 'ep_etherpad-lite') {
await exports.install(pkg)
await exports.manager.install(pkg)
}
}));
await persistInstalledPlugins();
}
exports.checkForMigration = async () => {