0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-30 22:34:10 -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:
jotadeveloper 2017-03-04 14:25:11 +01:00 committed by GitHub
commit dbb5fa2c9c

View file

@ -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) {