Skip to content

Commit 0ac499c

Browse files
committed
Merge branch 'master' of github.com:commitizen/cz-cli
* 'master' of github.com:commitizen/cz-cli: Allow using ES6 modules with default export (#328) chore(package): update babel-core to version 6.18.2 (#379)
2 parents 2eb14c2 + e02c705 commit 0ac499c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"devDependencies": {
5151
"axios": "0.15.2",
5252
"babel-cli": "6.18.0",
53-
"babel-core": "6.17.0",
53+
"babel-core": "6.18.2",
5454
"babel-preset-es2015": "6.18.0",
5555
"babel-preset-stage-2": "6.18.0",
5656
"chai": "3.5.0",

src/commitizen/adapter.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ function getPrompter(adapterPath) {
116116

117117
if(adapter && adapter.prompter && isFunction(adapter.prompter)) {
118118
return adapter.prompter;
119+
} else if (adapter && adapter.default && adapter.default.prompter && isFunction(adapter.default.prompter)) {
120+
return adapter.default.prompter;
119121
} else {
120122
throw "Could not find prompter method in the provided adapter module: " + adapterPath;
121123
}

0 commit comments

Comments
 (0)