mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
allow sinopia plugins to install
This commit is contained in:
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) {
|
||||
|
|
Loading…
Reference in a new issue