We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0772db commit 4783f4bCopy full SHA for 4783f4b
src/commitizen/commit.js
@@ -1,4 +1,5 @@
1
import path from 'path';
2
+import {deprecate} from 'util';
3
4
import pify from 'pify';
5
import dedent from 'dedent';
@@ -11,7 +12,11 @@ export default commit;
11
12
13
function askUser (inquirer, prompter) {
14
return new Promise(function (resolve, reject) {
- prompter(inquirer, function (arg0, arg1) {
15
+ const decoratedInquirer = {
16
+ prompt: deprecate(inquirer.prompt, 'Using the supplied copy of inquirer is depreacted, please depend on inquirer directly').bind(inquirer)
17
+ }
18
+
19
+ prompter(decoratedInquirer, function (arg0, arg1) {
20
// Allow adapters to error out by providing an Error
21
if (arg0 instanceof Error) {
22
return reject(arg0);
0 commit comments