mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
feat: Always install from path if the resolved URL does not include npmjs.
This commit is contained in:
parent
ccd4f52150
commit
9a19979ecb
1 changed files with 3 additions and 3 deletions
|
@ -64,12 +64,12 @@ const migratePluginsFromNodeModules = async () => {
|
||||||
.filter(([pkg, info]) => pkg.startsWith(plugins.prefix) && pkg !== 'ep_etherpad-lite')
|
.filter(([pkg, info]) => pkg.startsWith(plugins.prefix) && pkg !== 'ep_etherpad-lite')
|
||||||
.map(async ([pkg, info]) => {
|
.map(async ([pkg, info]) => {
|
||||||
const _info = info as PackageInfo
|
const _info = info as PackageInfo
|
||||||
if (!_info.resolved) {
|
if (!_info.resolved|| !_info.resolved.includes('npm')) {
|
||||||
// Install from node_modules directory
|
// Install from node_modules directory
|
||||||
await linkInstaller.installFromPath(`${findEtherpadRoot()}/node_modules/${pkg}`);
|
await linkInstaller.installFromPath(`${findEtherpadRoot()}/node_modules/${pkg}`);
|
||||||
} else {
|
} else {
|
||||||
await linkInstaller.installPlugin(pkg);
|
await linkInstaller.installPlugin(pkg, _info.version);
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
await persistInstalledPlugins();
|
await persistInstalledPlugins();
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue