diff --git a/package.json b/package.json index 29ba68c0..ad5ce9e4 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "@heroku-cli/color": "^1.1.3", "@oclif/command": "^1.4.14", "chalk": "^2.4.0", - "cli-ux": "^3.3.31", + "cli-ux": "^3.4.1", "debug": "^3.1.0", "fs-extra": "^5.0.0", "http-call": "^5.1.0", @@ -20,8 +20,8 @@ }, "devDependencies": { "@oclif/config": "^1.6.13", - "@oclif/dev-cli": "^1.13.4", - "@oclif/errors": "^1.0.4", + "@oclif/dev-cli": "^1.13.6", + "@oclif/errors": "^1.0.6", "@oclif/plugin-help": "^1.2.5", "@oclif/test": "^1.0.5", "@oclif/tslint": "^1.1.0", diff --git a/src/hooks/update.ts b/src/hooks/update.ts new file mode 100644 index 00000000..368a4abb --- /dev/null +++ b/src/hooks/update.ts @@ -0,0 +1,8 @@ +import {Hook} from '@oclif/config' + +import Plugins from '../plugins' + +export const update: Hook<'update'> = async function () { + const plugins = new Plugins(this.config) + await plugins.update() +} diff --git a/yarn.lock b/yarn.lock index f6e921ca..fe38634a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -58,19 +58,13 @@ dependencies: debug "^3.1.0" -"@oclif/config@^1.6.6": - version "1.6.7" - resolved "https://registry.yarnpkg.com/@oclif/config/-/config-1.6.7.tgz#0b924a4c99b08c19d40ec4661511ea5ce55c7a0b" +"@oclif/dev-cli@^1.13.6": + version "1.13.6" + resolved "https://registry.yarnpkg.com/@oclif/dev-cli/-/dev-cli-1.13.6.tgz#9ef12d771acee7a231753b7ef4611603710f3fc3" dependencies: - debug "^3.1.0" - -"@oclif/dev-cli@^1.13.4": - version "1.13.4" - resolved "https://registry.yarnpkg.com/@oclif/dev-cli/-/dev-cli-1.13.4.tgz#81d9e7266ef7745d287049f4126039087f91301f" - dependencies: - "@oclif/command" "^1.4.13" - "@oclif/config" "^1.6.6" - "@oclif/errors" "^1.0.4" + "@oclif/command" "^1.4.14" + "@oclif/config" "^1.6.13" + "@oclif/errors" "^1.0.6" "@oclif/plugin-help" "^1.2.5" cli-ux "^3.3.31" debug "^3.1.0" @@ -91,6 +85,16 @@ strip-ansi "^4.0.0" wrap-ansi "^3.0.1" +"@oclif/errors@^1.0.6": + version "1.0.6" + resolved "https://registry.yarnpkg.com/@oclif/errors/-/errors-1.0.6.tgz#76b17906ac1beea252add52e8e8ed78229c33a7b" + 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" + "@oclif/linewrap@^1.0.0": version "1.0.0" resolved "https://registry.yarnpkg.com/@oclif/linewrap/-/linewrap-1.0.0.tgz#aedcb64b479d4db7be24196384897b5000901d91" @@ -411,6 +415,25 @@ cli-ux@^3.3.31: strip-ansi "^4.0.0" supports-color "^5.4.0" +cli-ux@^3.4.1: + version "3.4.1" + resolved "https://registry.yarnpkg.com/cli-ux/-/cli-ux-3.4.1.tgz#bfa17e75cd1a60547a11c515166117b05ea89cdd" + dependencies: + "@oclif/linewrap" "^1.0.0" + "@oclif/screen" "^1.0.2" + ansi-styles "^3.2.1" + cardinal "^1.0.0" + chalk "^2.4.0" + clean-stack "^1.3.0" + extract-stack "^1.0.0" + fs-extra "^5.0.0" + indent-string "^3.2.0" + lodash "^4.17.5" + password-prompt "^1.0.4" + semver "^5.5.0" + strip-ansi "^4.0.0" + supports-color "^5.4.0" + collection-visit@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0"