Compare commits

...

3 Commits

Author SHA1 Message Date
AJ ONeal 6df8692385 v4.0.2: resolve config file when running out of project directory 2020-01-09 04:19:54 -07:00
AJ ONeal 8ab7ad25f2 ignore TODO files 2020-01-09 03:58:15 -07:00
AJ ONeal 8c11b56aa9 use explicit versions 2020-01-09 03:54:57 -07:00
5 changed files with 9 additions and 6 deletions

2
.gitignore vendored
View File

@ -1,5 +1,5 @@
greenlock.json* greenlock.json*
TODO.txt TODO*
link.sh link.sh
.env .env
.greenlockrc .greenlockrc

View File

@ -402,8 +402,8 @@ Greenlock comes with reasonable defaults but when you install it,
you should also install any plugins that you need. you should also install any plugins that you need.
```bash ```bash
npm install --save @root/greenlock npm install --save @root/greenlock@v4
npm install --save greenlock-manager-fs npm install --save @greenlock/manager
npm install --save greenlock-store-fs npm install --save greenlock-store-fs
npm install --save acme-http-01-standalone npm install --save acme-http-01-standalone
``` ```

View File

@ -125,7 +125,10 @@ Init._init = function(opts) {
} }
//var mkdirp = promisify(require("@root/mkdirp")); //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; var config;
try { try {
config = JSON.parse(fs.readFileSync(opts.configFile)); config = JSON.parse(fs.readFileSync(opts.configFile));

2
package-lock.json generated
View File

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

View File

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