mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
fix(plugin-loader): plugins verdaccio-* overwrite by sinopia-*
This commit is contained in:
parent
03c7142fa6
commit
6fa9ed7f07
1 changed files with 3 additions and 1 deletions
|
@ -22,7 +22,9 @@ function load_plugins(config, plugin_configs, params, sanity_check) {
|
|||
if (plugin === null && p.match(/^[^\.\/]/)) {
|
||||
plugin = try_load('verdaccio-' + p)
|
||||
// compatibility for old sinopia plugins
|
||||
plugin = try_load('sinopia-' + p)
|
||||
if(!plugin) {
|
||||
plugin = try_load('sinopia-' + p)
|
||||
}
|
||||
}
|
||||
|
||||
if (plugin === null) {
|
||||
|
|
Loading…
Reference in a new issue