Skip to content

Commit

Permalink
fix: updated hook
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Oct 3, 2018
1 parent dbaee15 commit 7e71672
Show file tree
Hide file tree
Showing 3 changed files with 393 additions and 48 deletions.
18 changes: 9 additions & 9 deletions package.json
Expand Up @@ -15,30 +15,30 @@
"bugs": "https://github.com/oclif/plugin-not-found/issues",
"dependencies": {
"@oclif/color": "^0.0.0",
"@oclif/command": "^1.5.0",
"@oclif/command": "^1.5.1",
"cli-ux": "^4.8.2",
"fast-levenshtein": "^2.0.6",
"lodash": "^4.17.11"
},
"devDependencies": {
"@oclif/config": "^1.7.6",
"@oclif/dev-cli": "^1.18.0",
"@oclif/errors": "^1.2.0",
"@oclif/plugin-commands": "^1.2.0",
"@oclif/config": "^1.8.2",
"@oclif/dev-cli": "^1.19.0",
"@oclif/errors": "^1.2.1",
"@oclif/plugin-commands": "^1.2.1",
"@oclif/plugin-help": "^2.1.2",
"@oclif/test": "^1.2.1",
"@oclif/tslint": "^3.1.0",
"@types/chai": "^4.1.4",
"@types/chai": "^4.1.6",
"@types/fast-levenshtein": "^0.0.1",
"@types/lodash": "^4.14.116",
"@types/mocha": "^5.2.5",
"@types/node": "^10.9.4",
"@types/node": "^10.11.4",
"@types/supports-color": "^5.3.0",
"chai": "^4.1.2",
"chai": "^4.2.0",
"mocha": "^5.2.0",
"ts-node": "^7.0.1",
"tslint": "^5.11.0",
"typescript": "^3.0.3"
"typescript": "^3.1.1"
},
"engines": {
"node": ">=8.0.0"
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Expand Up @@ -4,7 +4,7 @@ import {cli} from 'cli-ux'
import * as Levenshtein from 'fast-levenshtein'
import * as _ from 'lodash'

const hook: Hook<'command_not_found'> = async function (opts) {
const hook: Hook.CommandNotFound = async function (opts) {
const commandIDs = [
...opts.config.commandIDs,
..._.flatten(opts.config.commands.map(c => c.aliases)),
Expand Down

0 comments on commit 7e71672

Please sign in to comment.