diff --git a/index.js b/index.js index d5da0f9..25d49a0 100644 --- a/index.js +++ b/index.js @@ -117,7 +117,7 @@ module.exports = class Cli { //-- Set tasks - static init({ pkgPath, pkg }) { + static init({ pkgPath, pkg } = {}) { delete require.cache[__filename]; STATIC.pkgPath = pkgPath || path.dirname(module.parent.filename); diff --git a/package.json b/package.json index 4e6d8c8..593623a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@absolunet/cli", - "version": "0.5.0", + "version": "0.5.1", "description": "CLI utilities", "definition": "", "homepage": "https://github.com/absolunet/node-cli", @@ -17,18 +17,18 @@ "url": "https://github.com/absolunet/node-cli/issues" }, "engines": { - "node": ">= 9.5.0" + "node": ">= 9.8.0" }, "scripts": { "test": "ava test" }, "devDependencies": { - "@absolunet/tester": "1.3.0" + "@absolunet/tester": "1.4.0" }, "dependencies": { "@absolunet/terminal": "^0.4.4", "@absolunet/terminal-pad": "^0.0.2", - "chalk": "^2.3.1", + "chalk": "^2.3.2", "glob": "^7.1.2", "indent-string": "^3.2.0", "omelette": "^0.4.5",