Skip to content

Commit

Permalink
fix: updated config
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 3, 2018
1 parent f04b6be commit cfb1acf
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 38 deletions.
13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@
},
"bugs": "https://github.com/anycli/plugin-version/issues",
"dependencies": {
"@anycli/command": "^0.3.7",
"@anycli/command": "^1.2.0",
"cli-ux": "^3.3.13"
},
"devDependencies": {
"@anycli/config": "^0.3.0",
"@anycli/config": "^1.0.9",
"@anycli/dev-cli": "^0.1.3",
"@anycli/engine": "^0.3.1",
"@anycli/test": "^0.10.3",
"@anycli/tslint": "^0.2.2",
"@anycli/test": "^0.10.6",
"@anycli/tslint": "^0.2.5",
"@types/chai": "^4.1.2",
"@types/lodash": "^4.14.100",
"@types/mocha": "^2.2.48",
Expand All @@ -29,8 +28,8 @@
"@types/read-pkg": "^3.0.0",
"chai": "^4.1.2",
"concurrently": "^3.5.1",
"eslint": "^4.16.0",
"eslint-config-anycli": "^1.3.1",
"eslint": "^4.17.0",
"eslint-config-anycli": "^1.3.2",
"mocha": "^5.0.0",
"ts-node": "^4.1.0",
"typescript": "^2.7.1"
Expand Down
6 changes: 3 additions & 3 deletions src/hooks/init.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import {Hooks, IHook} from '@anycli/config'
import {Hook} from '@anycli/config'
import cli from 'cli-ux'

import Version from '../commands/version'

const hook: IHook<Hooks['init']> = async opts => {
const hook: Hook<'init'> = async opts => {
if (['-v', '--version'].includes(opts.id)) {
await Version.run([], opts)
await Version.run([], opts.config)
cli.exit(0)
}
}
Expand Down
82 changes: 54 additions & 28 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@
lodash "^4.17.4"
tslib "^1.9.0"

"@anycli/command@^1.2.0":
version "1.2.0"
resolved "https://registry.yarnpkg.com/@anycli/command/-/command-1.2.0.tgz#10692132c097e620f6ff5e9560fb1b6921ae146a"
dependencies:
"@anycli/parser" "^3.2.1"
cli-ux "^3.3.13"
debug "^3.1.0"
fs-extra "^5.0.0"
load-json-file "^4.0.0"
lodash "^4.17.4"

"@anycli/config@^0.3.0":
version "0.3.0"
resolved "https://registry.yarnpkg.com/@anycli/config/-/config-0.3.0.tgz#a0938488e7afc507d69ec13a8e52c71aaecc08ea"
Expand All @@ -23,6 +34,19 @@
lodash "^4.17.4"
read-pkg "^3.0.0"

"@anycli/config@^1.0.9":
version "1.0.9"
resolved "https://registry.yarnpkg.com/@anycli/config/-/config-1.0.9.tgz#09e8e22a1586bb05d2bf4815fafe3d0674356a62"
dependencies:
cli-ux "^3.3.13"
debug "^3.1.0"
fs-extra "^5.0.0"
fs-extra-debug "^1.0.4"
globby "^7.1.1"
load-json-file "^4.0.0"
lodash "^4.17.4"
read-pkg "^3.0.0"

"@anycli/dev-cli@^0.1.3":
version "0.1.3"
resolved "https://registry.yarnpkg.com/@anycli/dev-cli/-/dev-cli-0.1.3.tgz#bd3d1229d17c2f61176f872923d4841a539a0cb3"
Expand All @@ -48,18 +72,6 @@
lodash "^4.17.4"
semver "^5.5.0"

"@anycli/engine@^0.3.1":
version "0.3.1"
resolved "https://registry.yarnpkg.com/@anycli/engine/-/engine-0.3.1.tgz#c352d9cc73e66759ddc88c72da2907f1e1a0d553"
dependencies:
"@anycli/manifest-file" "^0.3.8"
cli-ux "^3.3.13"
debug "^3.1.0"
fs-extra "^5.0.0"
globby "^7.1.1"
lodash "^4.17.4"
semver "^5.5.0"

"@anycli/manifest-file@^0.3.8":
version "0.3.8"
resolved "https://registry.yarnpkg.com/@anycli/manifest-file/-/manifest-file-0.3.8.tgz#d175a27e1d2009a14080c7e8dd808c1c856de468"
Expand All @@ -79,6 +91,14 @@
chalk "^2.3.0"
lodash "^4.17.4"

"@anycli/parser@^3.2.1":
version "3.2.1"
resolved "https://registry.yarnpkg.com/@anycli/parser/-/parser-3.2.1.tgz#89fe1c37f8792d6c1cba7d1c4ec2fb42b290ce05"
dependencies:
"@anycli/screen" "^0.0.3"
chalk "^2.3.0"
lodash "^4.17.4"

"@anycli/plugin-help@^0.4.0":
version "0.4.1"
resolved "https://registry.yarnpkg.com/@anycli/plugin-help/-/plugin-help-0.4.1.tgz#ee8aaaa8cf611f77d10725a6f5e27163e4ff95c4"
Expand Down Expand Up @@ -113,16 +133,16 @@
version "0.0.3"
resolved "https://registry.yarnpkg.com/@anycli/screen/-/screen-0.0.3.tgz#f0afd970c3ed725702948a45a874ede1fdd9362e"

"@anycli/test@^0.10.3":
version "0.10.3"
resolved "https://registry.yarnpkg.com/@anycli/test/-/test-0.10.3.tgz#f0179c6407f7a4a71893bd1ded95a0669b20ea31"
"@anycli/test@^0.10.6":
version "0.10.6"
resolved "https://registry.yarnpkg.com/@anycli/test/-/test-0.10.6.tgz#566b2130ac9953a7e3f57d6e6fb32ece90c319fa"
dependencies:
fancy-test "^0.6.6"
fancy-test "^0.6.8"
lodash "^4.17.4"

"@anycli/tslint@^0.2.2":
version "0.2.2"
resolved "https://registry.yarnpkg.com/@anycli/tslint/-/tslint-0.2.2.tgz#46e899f58019600fc6a7191e7fde47d6b4513df1"
"@anycli/tslint@^0.2.5":
version "0.2.5"
resolved "https://registry.yarnpkg.com/@anycli/tslint/-/tslint-0.2.5.tgz#63feeb981b11f36326e0cb745c62f51d55c2ed67"
dependencies:
tslint "^5.9.1"
tslint-xo "^0.6.0"
Expand Down Expand Up @@ -586,9 +606,9 @@ eslint-ast-utils@^1.0.0:
lodash.get "^4.4.2"
lodash.zip "^4.2.0"

eslint-config-anycli@^1.3.1:
version "1.3.1"
resolved "https://registry.yarnpkg.com/eslint-config-anycli/-/eslint-config-anycli-1.3.1.tgz#e05fefcdbdffdd3e74069dac5252a8bc70ae7eb2"
eslint-config-anycli@^1.3.2:
version "1.3.2"
resolved "https://registry.yarnpkg.com/eslint-config-anycli/-/eslint-config-anycli-1.3.2.tgz#0f28e63a8ae93d490623cdcd89eeafcb7635b082"
dependencies:
eslint-config-xo-space "^0.17.0"
eslint-plugin-mocha "^4.11.0"
Expand Down Expand Up @@ -643,9 +663,9 @@ eslint-visitor-keys@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#3f3180fb2e291017716acb4c9d6d5b5c34a6a81d"

eslint@^4.16.0:
version "4.16.0"
resolved "https://registry.yarnpkg.com/eslint/-/eslint-4.16.0.tgz#934ada9e98715e1d7bbfd6f6f0519ed2fab35cc1"
eslint@^4.17.0:
version "4.17.0"
resolved "https://registry.yarnpkg.com/eslint/-/eslint-4.17.0.tgz#dc24bb51ede48df629be7031c71d9dc0ee4f3ddf"
dependencies:
ajv "^5.3.0"
babel-code-frame "^6.22.0"
Expand Down Expand Up @@ -737,9 +757,9 @@ extract-stack@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/extract-stack/-/extract-stack-1.0.0.tgz#b97acaf9441eea2332529624b732fc5a1c8165fa"

fancy-test@^0.6.6:
version "0.6.6"
resolved "https://registry.yarnpkg.com/fancy-test/-/fancy-test-0.6.6.tgz#cda1afbf57ea2fb05291edbff34c0bbc2600d956"
fancy-test@^0.6.8:
version "0.6.8"
resolved "https://registry.yarnpkg.com/fancy-test/-/fancy-test-0.6.8.tgz#8f5f335783e8f54bd6261ba1d09b83826333ad11"
dependencies:
lodash "^4.17.4"
stdout-stderr "^0.1.6"
Expand Down Expand Up @@ -778,6 +798,12 @@ flat-cache@^1.2.1:
graceful-fs "^4.1.2"
write "^0.2.1"

fs-extra-debug@^1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/fs-extra-debug/-/fs-extra-debug-1.0.4.tgz#5efa3bd2a7ef6753fa79cfd810aab36445fa4788"
dependencies:
debug "^3.1.0"

fs-extra@^5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-5.0.0.tgz#414d0110cdd06705734d055652c5411260c31abd"
Expand Down

0 comments on commit cfb1acf

Please sign in to comment.