From 6fa9ed7f07367a6fa1023bd0ffd234b0a94b507a Mon Sep 17 00:00:00 2001 From: Alexandre-io Date: Thu, 2 Mar 2017 17:35:27 +0100 Subject: [PATCH] fix(plugin-loader): plugins verdaccio-* overwrite by sinopia-* --- lib/plugin-loader.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/plugin-loader.js b/lib/plugin-loader.js index a3fc68aa7..17d84203c 100644 --- a/lib/plugin-loader.js +++ b/lib/plugin-loader.js @@ -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) {