Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Commit

Permalink
Allow empty params on init
Browse files Browse the repository at this point in the history
  • Loading branch information
jblandry committed Mar 19, 2018
1 parent 748f89c commit 95a95cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit 95a95cc

Please sign in to comment.