From 5314932d64dbbc5cd0f408daf6bd439501638038 Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdxcode@users.noreply.github.com> Date: Mon, 5 Feb 2018 21:59:43 -0800 Subject: [PATCH] fix: use @anycli/errors --- bin/run | 1 + package.json | 9 +++++---- yarn.lock | 46 +++++++++++++++++++++++++++++++++++++--------- 3 files changed, 43 insertions(+), 13 deletions(-) diff --git a/bin/run b/bin/run index ac4d489f..450b9476 100755 --- a/bin/run +++ b/bin/run @@ -1,3 +1,4 @@ #!/usr/bin/env node require('@anycli/command').run() +.catch(require('@anycli/errors/handle')) diff --git a/package.json b/package.json index cae27598..8a9845c8 100644 --- a/package.json +++ b/package.json @@ -12,10 +12,10 @@ }, "bugs": "https://github.com/anycli/plugin-plugins/issues", "dependencies": { - "@anycli/command": "^1.2.6", + "@anycli/command": "^1.2.9", "@heroku-cli/color": "^1.1.3", "chalk": "^2.3.0", - "cli-ux": "^3.3.16", + "cli-ux": "^3.3.18", "debug": "^3.1.0", "fs-extra": "^5.0.0", "http-call": "^5.0.2", @@ -26,11 +26,12 @@ "yarn": "^1.3.2" }, "devDependencies": { - "@anycli/config": "^1.2.3", + "@anycli/config": "^1.3.10", "@anycli/dev-cli": "^0.1.6", + "@anycli/errors": "^0.2.0", "@anycli/plugin-help": "^0.6.3", "@anycli/test": "^0.10.11", - "@anycli/tslint": "^0.2.5", + "@anycli/tslint": "^0.2.6", "@types/chai": "^4.1.2", "@types/fs-extra": "^5.0.0", "@types/load-json-file": "^2.0.7", diff --git a/yarn.lock b/yarn.lock index 6f097179..bbce708c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,16 +2,26 @@ # yarn lockfile v1 -"@anycli/command@^1.2.5", "@anycli/command@^1.2.6": +"@anycli/command@^1.2.5": version "1.2.6" resolved "https://registry.yarnpkg.com/@anycli/command/-/command-1.2.6.tgz#0e7d2d1856055c31ded61468c2c34c77260fd441" dependencies: "@anycli/parser" "^3.2.4" -"@anycli/config@^1.1.8", "@anycli/config@^1.2.3": +"@anycli/command@^1.2.9": + version "1.2.9" + resolved "https://registry.yarnpkg.com/@anycli/command/-/command-1.2.9.tgz#6db08fbb3537c8cc2f616415fcd6360043750f38" + dependencies: + "@anycli/parser" "^3.2.5" + +"@anycli/config@^1.1.8": version "1.2.3" resolved "https://registry.yarnpkg.com/@anycli/config/-/config-1.2.3.tgz#6bedf5111146c5563f74fde4fc89d74da7920c5a" +"@anycli/config@^1.3.10": + version "1.3.10" + resolved "https://registry.yarnpkg.com/@anycli/config/-/config-1.3.10.tgz#8d821fe8a60ec400dd49d9b1a12f7062e590dd4f" + "@anycli/dev-cli@^0.1.6": version "0.1.6" resolved "https://registry.yarnpkg.com/@anycli/dev-cli/-/dev-cli-0.1.6.tgz#bb27980fe2cfb26f889768006c26735350fdfe28" @@ -20,10 +30,24 @@ "@anycli/config" "^1.1.8" "@anycli/plugin-help" "^0.6.2" +"@anycli/errors@^0.2.0": + version "0.2.0" + resolved "https://registry.yarnpkg.com/@anycli/errors/-/errors-0.2.0.tgz#ee421115dcdb499d76de9d4853718c06e1c5d5f0" + dependencies: + clean-stack "^1.3.0" + fs-extra "^5.0.0" + indent-string "^3.2.0" + strip-ansi "^4.0.0" + wrap-ansi "^3.0.1" + "@anycli/parser@^3.2.4": version "3.2.4" resolved "https://registry.yarnpkg.com/@anycli/parser/-/parser-3.2.4.tgz#30297ac2fa225b37efaab5c0062bf189988b3ce8" +"@anycli/parser@^3.2.5": + version "3.2.5" + resolved "https://registry.yarnpkg.com/@anycli/parser/-/parser-3.2.5.tgz#d0e7ddb14945cb84377fa69095009ca6005e6b6d" + "@anycli/plugin-help@^0.6.2", "@anycli/plugin-help@^0.6.3": version "0.6.3" resolved "https://registry.yarnpkg.com/@anycli/plugin-help/-/plugin-help-0.6.3.tgz#e365947b69ce232cbd49fcda934dd53852d2503f" @@ -46,9 +70,9 @@ dependencies: fancy-test "^1.0.1" -"@anycli/tslint@^0.2.5": - version "0.2.5" - resolved "https://registry.yarnpkg.com/@anycli/tslint/-/tslint-0.2.5.tgz#63feeb981b11f36326e0cb745c62f51d55c2ed67" +"@anycli/tslint@^0.2.6": + version "0.2.6" + resolved "https://registry.yarnpkg.com/@anycli/tslint/-/tslint-0.2.6.tgz#4251f4cb3744dc577309b4351d2c2e8b65072de2" dependencies: tslint "^5.9.1" tslint-xo "^0.6.0" @@ -243,9 +267,9 @@ clean-stack@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/clean-stack/-/clean-stack-1.3.0.tgz#9e821501ae979986c46b1d66d2d432db2fd4ae31" -cli-ux@^3.3.16: - version "3.3.16" - resolved "https://registry.yarnpkg.com/cli-ux/-/cli-ux-3.3.16.tgz#b542f781c89b03467d5417b7510bbce96559c325" +cli-ux@^3.3.18: + version "3.3.18" + resolved "https://registry.yarnpkg.com/cli-ux/-/cli-ux-3.3.18.tgz#e14419abb33824b905507fa2e892adf79aeee16f" dependencies: "@anycli/screen" "^0.0.3" "@heroku/linewrap" "^1.0.0" @@ -256,7 +280,7 @@ cli-ux@^3.3.16: extract-stack "^1.0.0" fs-extra "^5.0.0" indent-string "^3.2.0" - lodash "^4.17.4" + lodash "^4.17.5" password-prompt "^1.0.4" semver "^5.5.0" strip-ansi "^4.0.0" @@ -569,6 +593,10 @@ lodash@^4.17.4, lodash@^4.5.1: version "4.17.4" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae" +lodash@^4.17.5: + version "4.17.5" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.5.tgz#99a92d65c0272debe8c96b6057bc8fbfa3bed511" + lru-cache@^4.0.1: version "4.1.1" resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.1.tgz#622e32e82488b49279114a4f9ecf45e7cd6bba55"