u
This commit is contained in:
@@ -21,12 +21,10 @@ const defaultEnv = {
|
||||
: '',
|
||||
simsimPath: module.paths.some((modulesPath) => fs.existsSync(path.join(modulesPath, 'simsim_key')))
|
||||
? 'simsim_key'
|
||||
: fs.existsSync('../../../simsim_key')
|
||||
? path.resolve('../../../simsim_key')
|
||||
: fs.existsSync(`${os.homedir()}/simsim_key`)
|
||||
? path.resolve(`${os.homedir()}/simsim_key`)
|
||||
: '',
|
||||
openShare: fs.existsSync('../../npm') ? path.resolve('../../npm') : fs.existsSync(`${os.homedir()}/opx`) ? path.resolve(`${os.homedir()}/opx`) : '',
|
||||
openShare: fs.existsSync('../../opx') ? path.resolve('../../opx') : fs.existsSync(`${os.homedir()}/opx`) ? path.resolve(`${os.homedir()}/opx`) : '',
|
||||
}
|
||||
|
||||
const paramDefaults = params.reduce((acc, cur) => {
|
||||
|
||||
Reference in New Issue
Block a user