mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
Rename config path from sinopia to verdaccio
This commit is contained in:
parent
7579bb21c0
commit
6de559c020
1 changed files with 4 additions and 4 deletions
|
@ -25,7 +25,7 @@ function create_config_file(config_path) {
|
|||
var data_dir = process.env.XDG_DATA_HOME
|
||||
|| Path.join(process.env.HOME, '.local', 'share')
|
||||
if (folder_exists(data_dir)) {
|
||||
data_dir = Path.resolve(Path.join(data_dir, 'sinopia', 'storage'))
|
||||
data_dir = Path.resolve(Path.join(data_dir, 'verdaccio', 'storage'))
|
||||
created_config = created_config.replace(/^storage: .\/storage$/m, 'storage: ' + data_dir)
|
||||
}
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ function get_paths() {
|
|||
|| process.env.HOME && Path.join(process.env.HOME, '.config')
|
||||
if (xdg_config && folder_exists(xdg_config)) {
|
||||
try_paths.push({
|
||||
path: Path.join(xdg_config, 'sinopia', 'config.yaml'),
|
||||
path: Path.join(xdg_config, 'verdaccio', 'config.yaml'),
|
||||
type: 'xdg',
|
||||
})
|
||||
}
|
||||
|
@ -48,13 +48,13 @@ function get_paths() {
|
|||
&& process.env.APPDATA
|
||||
&& folder_exists(process.env.APPDATA)) {
|
||||
try_paths.push({
|
||||
path: Path.resolve(Path.join(process.env.APPDATA, 'sinopia', 'config.yaml')),
|
||||
path: Path.resolve(Path.join(process.env.APPDATA, 'verdaccio', 'config.yaml')),
|
||||
type: 'win',
|
||||
})
|
||||
}
|
||||
|
||||
try_paths.push({
|
||||
path: Path.resolve(Path.join('.', 'sinopia', 'config.yaml')),
|
||||
path: Path.resolve(Path.join('.', 'verdaccio', 'config.yaml')),
|
||||
type: 'def',
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue