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:
parent
a7c4285a68
commit
9fd42ffb34
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user