Closed tsantef closed 9 years ago
I would have the util lib manage the config file allowing access to properties on a config object. Read it in like:
var config = JSON.parse(fs.readFileSync(configPath, 'utf8') || '{}')
Yeah, I'm going to move it into a util as there is a an fs.exists
that needs to happen prior.
Should be fixed now, the bigSync module required config before it was written, which caused the error. It now only requires it the export is called.
In branch master
It looks like the initial setup expects the json file exists before its created.