feature(config) tryrequire -> readjson

This commit is contained in:
coderaiser 2015-06-22 11:57:34 -04:00
parent f8973e26c0
commit 080a458712
2 changed files with 4 additions and 3 deletions

View file

@ -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;

View file

@ -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",