From 58e1f60ef282b2a43da67310bbf6bc6ba68b1c87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20M=C3=BCller?= Date: Wed, 1 Nov 2023 15:56:30 +0100 Subject: [PATCH] Create installed_plugins.json even if no plugin is installed --- src/static/js/pluginfw/installer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/static/js/pluginfw/installer.js b/src/static/js/pluginfw/installer.js index 0e1068051..445dbb372 100644 --- a/src/static/js/pluginfw/installer.js +++ b/src/static/js/pluginfw/installer.js @@ -42,6 +42,7 @@ 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)