mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-13 22:48:31 -05:00
Merge pull request #129 from Alexandre-io/fix/plugin-loader
fix(plugin-loader): plugins verdaccio-* overwrite by sinopia-*
This commit is contained in:
commit
dbb5fa2c9c
1 changed files with 3 additions and 1 deletions
|
@ -22,8 +22,10 @@ function load_plugins(config, plugin_configs, params, sanity_check) {
|
||||||
if (plugin === null && p.match(/^[^\.\/]/)) {
|
if (plugin === null && p.match(/^[^\.\/]/)) {
|
||||||
plugin = try_load('verdaccio-' + p)
|
plugin = try_load('verdaccio-' + p)
|
||||||
// compatibility for old sinopia plugins
|
// compatibility for old sinopia plugins
|
||||||
|
if(!plugin) {
|
||||||
plugin = try_load('sinopia-' + p)
|
plugin = try_load('sinopia-' + p)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (plugin === null) {
|
if (plugin === null) {
|
||||||
plugin = try_load(p)
|
plugin = try_load(p)
|
||||||
|
|
Loading…
Add table
Reference in a new issue