Don't install all dependencies from node_modules

This commit is contained in:
Denys Halenok 2024-02-20 10:57:31 +01:00
parent 157cad786c
commit a29da64e33
No known key found for this signature in database
GPG key ID: 78381F2A21A2BEBD

View file

@ -53,7 +53,7 @@ const migratePluginsFromNodeModules = async () => {
await Promise.all(Object.entries(dependencies)
.filter(([pkg, info]) => pkg.startsWith(plugins.prefix) && pkg !== 'ep_etherpad-lite')
.map(async ([pkg, info]) => {
if (!info._resolved) {
if (!info.resolved) {
// Install from node_modules directory
await exports.manager.installFromPath(`${findEtherpadRoot()}/node_modules/${pkg}`);
} else {