1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-08 23:25:51 +01:00

allow sinopia plugins to install

This commit is contained in:
Madison Grubb 2016-11-09 13:12:15 -05:00
parent a7c4285a68
commit 9fd42ffb34
2 changed files with 3 additions and 1 deletions

@ -37,7 +37,7 @@ function Config(config) {
self.localList = LocalData(
Path.join(
Path.resolve(Path.dirname(self.self_path || ''), self.storage),
'.verdaccio-db.json'
'.sinopia-db.json'
)
)
if (!self.secret) {

@ -21,6 +21,8 @@ function load_plugins(config, plugin_configs, params, sanity_check) {
// npm package
if (plugin === null && p.match(/^[^\.\/]/)) {
plugin = try_load('verdaccio-' + p)
// compatibility for old sinopia plugins
plugin = try_load('sinopia-' + p)
}
if (plugin === null) {