mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-08 23:25:51 +01:00
fix: missing method
This commit is contained in:
parent
11eefe15fc
commit
101dfe9c5d
@ -4,7 +4,7 @@ import Path from 'path';
|
||||
import logger from './logger';
|
||||
import mkdirp from 'mkdirp';
|
||||
|
||||
import {folder_exists, file_exists} from './utils';
|
||||
import {folder_exists, fileExists} from './utils';
|
||||
|
||||
const CONFIG_FILE = 'config.yaml';
|
||||
const XDG = 'xdg';
|
||||
@ -27,7 +27,7 @@ function findConfigFile(configPath) {
|
||||
throw new Error('no configuration files can be proccesed');
|
||||
}
|
||||
|
||||
const primaryConf = _.find(configPaths, (configLocation) => file_exists(configLocation.path));
|
||||
const primaryConf = _.find(configPaths, (configLocation) => fileExists(configLocation.path));
|
||||
if (_.isNil(primaryConf) === false) {
|
||||
return primaryConf.path;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user