Skip to content

Commit

Permalink
fix: added update hook
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Apr 22, 2018
1 parent 9c70a85 commit 6b01f11
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 15 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
8 changes: 8 additions & 0 deletions src/hooks/update.ts
Original file line number Diff line number Diff line change
@@ -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()
}
47 changes: 35 additions & 12 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 6b01f11

Please sign in to comment.