mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature(config) tryrequire -> readjson
This commit is contained in:
parent
f8973e26c0
commit
080a458712
2 changed files with 4 additions and 3 deletions
|
|
@ -16,7 +16,7 @@
|
|||
pipe = require('pipe-io'),
|
||||
ponse = require('ponse'),
|
||||
jonny = require('jonny'),
|
||||
tryRequire = require('tryrequire'),
|
||||
readjson = require('readjson'),
|
||||
|
||||
apiURL = CloudFunc.apiURL,
|
||||
|
||||
|
|
@ -24,8 +24,8 @@
|
|||
ConfigHome = homedir() + '.cloudcmd.json',
|
||||
|
||||
config =
|
||||
tryRequire(ConfigHome) ||
|
||||
tryRequire(ConfigPath);
|
||||
readjson.sync.try(ConfigHome) ||
|
||||
readjson.sync.try(ConfigPath);
|
||||
|
||||
module.exports = manage;
|
||||
module.exports.save = save;
|
||||
|
|
|
|||
|
|
@ -57,6 +57,7 @@
|
|||
"package-json": "~1.2.0",
|
||||
"pipe-io": "~1.1.1",
|
||||
"ponse": "~1.4.0",
|
||||
"readjson": "~1.1.0",
|
||||
"rendy": "~1.1.0",
|
||||
"restafary": "~1.3.0",
|
||||
"socket.io": "~1.3.5",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue