v4.0.2: resolve config file when running out of project directory

This commit is contained in:
AJ ONeal 2020-01-09 04:19:54 -07:00
parent 8ab7ad25f2
commit 6df8692385
3 changed files with 6 additions and 3 deletions

View File

@ -125,7 +125,10 @@ Init._init = function(opts) {
}
//var mkdirp = promisify(require("@root/mkdirp"));
opts.configFile = path.join(opts.configDir, 'config.json');
opts.configFile = path.join(
path.resolve(opts.packageRoot, opts.configDir),
'config.json'
);
var config;
try {
config = JSON.parse(fs.readFileSync(opts.configFile));

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "@root/greenlock",
"version": "4.0.1",
"version": "4.0.2",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "@root/greenlock",
"version": "4.0.1",
"version": "4.0.2",
"description": "The easiest Let's Encrypt client for Node.js and Browsers",
"homepage": "https://rootprojects.org/greenlock/",
"main": "greenlock.js",