Skip to content

Commit

Permalink
Create installed_plugins.json even if no plugin is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
Gared committed Nov 1, 2023
1 parent 4863f10 commit 58e1f60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/static/js/pluginfw/installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 58e1f60

Please sign in to comment.