Merge pull request #498 from kykungz/fix-491
Fix TypeScript build error and add missing confirm import (regression from #491)
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import {
|
import {
|
||||||
text,
|
text,
|
||||||
|
confirm,
|
||||||
intro,
|
intro,
|
||||||
isCancel,
|
isCancel,
|
||||||
multiselect,
|
multiselect,
|
||||||
@@ -99,10 +100,12 @@ ${chalk.grey('——————————————————')}`
|
|||||||
if (isCancel(userAction)) process.exit(1);
|
if (isCancel(userAction)) process.exit(1);
|
||||||
|
|
||||||
if (userAction === 'Edit') {
|
if (userAction === 'Edit') {
|
||||||
commitMessage = await text({
|
const textResponse = await text({
|
||||||
message: 'Please edit the commit message: (press Enter to continue)',
|
message: 'Please edit the commit message: (press Enter to continue)',
|
||||||
initialValue: commitMessage
|
initialValue: commitMessage
|
||||||
});
|
});
|
||||||
|
|
||||||
|
commitMessage = textResponse.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (userAction === 'Yes' || userAction === 'Edit') {
|
if (userAction === 'Yes' || userAction === 'Edit') {
|
||||||
|
|||||||
Reference in New Issue
Block a user