mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-08 08:01:02 -04:00
Create installed_plugins.json even if no plugin is installed
This commit is contained in:
parent
b8ee252708
commit
e9a2688ce1
1 changed files with 1 additions and 0 deletions
|
@ -46,6 +46,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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue