Don't install all dependencies from node_modules (#6173)

This commit is contained in:
Denys Halenok 2024-02-20 11:16:20 +01:00 committed by GitHub
parent 157cad786c
commit 4f53142d7f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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 {