Browse Source

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

v4 v4.0.2
AJ ONeal 3 years ago
parent
commit
6df8692385
  1. 5
      lib/init.js
  2. 2
      package-lock.json
  3. 2
      package.json

5
lib/init.js

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

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

2
package.json

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

Loading…
Cancel
Save