Pin inquirer to the version, when it throws an exception on unavailable TTY

This commit is contained in:
ErickSkrauch 2020-06-10 00:21:36 +03:00
parent c3b778e3ca
commit 5f6c11dddb
3 changed files with 21 additions and 21 deletions

View File

@ -278,7 +278,7 @@ async function push(): Promise<void> {
} }
let disapproveTranslates = true; let disapproveTranslates = true;
let publishInBranch = false; let publishInBranch = isMasterBranch;
try { try {
const answers = await prompt(questions); const answers = await prompt(questions);
disapproveTranslates = answers[0]; disapproveTranslates = answers[0];

View File

@ -16,7 +16,7 @@
"chalk": "^4.0.0", "chalk": "^4.0.0",
"git-repo-info": "^2.1.1", "git-repo-info": "^2.1.1",
"glob": "^7.1.6", "glob": "^7.1.6",
"inquirer": "^7.1.0", "inquirer": "7.0.6",
"iso-639-1": "^2.1.3", "iso-639-1": "^2.1.3",
"json5": "^2.1.3", "json5": "^2.1.3",
"progress": "^2.0.3" "progress": "^2.0.3"

View File

@ -8950,6 +8950,25 @@ inquirer@6.5.0:
strip-ansi "^5.1.0" strip-ansi "^5.1.0"
through "^2.3.6" through "^2.3.6"
inquirer@7.0.6:
version "7.0.6"
resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-7.0.6.tgz#ee4ff0ea7ecda5324656fe665878790f66df7d0c"
integrity sha512-7SVO4h+QIdMq6XcqIqrNte3gS5MzCCKZdsq9DO4PJziBFNYzP3PGFbDjgadDb//MCahzgjCxvQ/O2wa7kx9o4w==
dependencies:
ansi-escapes "^4.2.1"
chalk "^3.0.0"
cli-cursor "^3.1.0"
cli-width "^2.0.0"
external-editor "^3.0.3"
figures "^3.0.0"
lodash "^4.17.15"
mute-stream "0.0.8"
run-async "^2.4.0"
rxjs "^6.5.3"
string-width "^4.1.0"
strip-ansi "^6.0.0"
through "^2.3.6"
inquirer@^7.0.0: inquirer@^7.0.0:
version "7.0.1" version "7.0.1"
resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-7.0.1.tgz#13f7980eedc73c689feff3994b109c4e799c6ebb" resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-7.0.1.tgz#13f7980eedc73c689feff3994b109c4e799c6ebb"
@ -8969,25 +8988,6 @@ inquirer@^7.0.0:
strip-ansi "^5.1.0" strip-ansi "^5.1.0"
through "^2.3.6" through "^2.3.6"
inquirer@^7.1.0:
version "7.1.0"
resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-7.1.0.tgz#1298a01859883e17c7264b82870ae1034f92dd29"
integrity sha512-5fJMWEmikSYu0nv/flMc475MhGbB7TSPd/2IpFV4I4rMklboCH2rQjYY5kKiYGHqUF9gvaambupcJFFG9dvReg==
dependencies:
ansi-escapes "^4.2.1"
chalk "^3.0.0"
cli-cursor "^3.1.0"
cli-width "^2.0.0"
external-editor "^3.0.3"
figures "^3.0.0"
lodash "^4.17.15"
mute-stream "0.0.8"
run-async "^2.4.0"
rxjs "^6.5.3"
string-width "^4.1.0"
strip-ansi "^6.0.0"
through "^2.3.6"
internal-ip@^4.3.0: internal-ip@^4.3.0:
version "4.3.0" version "4.3.0"
resolved "https://registry.yarnpkg.com/internal-ip/-/internal-ip-4.3.0.tgz#845452baad9d2ca3b69c635a137acb9a0dad0907" resolved "https://registry.yarnpkg.com/internal-ip/-/internal-ip-4.3.0.tgz#845452baad9d2ca3b69c635a137acb9a0dad0907"