Skip to content
This repository was archived by the owner on Feb 1, 2022. It is now read-only.

Commit 00cf754

Browse files
committed
fix: fixed exitCode
1 parent 24741b2 commit 00cf754

File tree

4 files changed

+46
-137
lines changed

4 files changed

+46
-137
lines changed

.circleci/test

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ if [[ "$CIRCLE_BRANCH" == greenkeeper/* ]]; then
2525
fi
2626

2727
yarn install $CLI_ENGINE_UTIL_YARN_ARGS
28-
yarn link
29-
yarn link cli-ux
3028

3129
if [[ "$CLI_ENGINE_GREENKEEPER_BRANCH" == 1 ]]; then
3230
greenkeeper-lockfile-upload

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
},
2020
"devDependencies": {
2121
"@dxcli/dev-semantic-release": "^0.0.3",
22-
"@dxcli/dev-test": "^0.4.0",
22+
"@dxcli/dev-test": "^0.4.2",
2323
"@dxcli/dev-tslint": "^0.0.15",
2424
"@types/fs-extra": "^5.0.0",
2525
"@types/node": "^9.3.0",

src/exit.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export class ExitError extends Error {
22
public 'cli-ux': {
3-
exitCode: number
3+
exit: number
44
}
55
public code: 'EEXIT'
66
public error?: Error
@@ -9,7 +9,7 @@ export class ExitError extends Error {
99
const code = 'EEXIT'
1010
super(error ? error.message : `${code}: ${status}`)
1111
this.error = error
12-
this['cli-ux'] = {exitCode: status}
12+
this['cli-ux'] = {exit: status}
1313
this.code = code
1414
}
1515
}

yarn.lock

Lines changed: 43 additions & 132 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,6 @@
22
# yarn lockfile v1
33

44

5-
"@cli-engine/command@^12.1.1":
6-
version "12.1.1"
7-
resolved "https://registry.yarnpkg.com/@cli-engine/command/-/command-12.1.1.tgz#bb6262f849b59531ec386414b2ea763fd9385415"
8-
dependencies:
9-
"@cli-engine/screen" "^0.0.0"
10-
chalk "^2.3.0"
11-
cli-flags "^2.0.7"
12-
13-
"@cli-engine/config@^5.1.0":
14-
version "5.1.0"
15-
resolved "https://registry.yarnpkg.com/@cli-engine/config/-/config-5.1.0.tgz#d8ac7122317bc505dc09e7fd778777602d6b7568"
16-
175
"@cli-engine/screen@^0.0.0":
186
version "0.0.0"
197
resolved "https://registry.yarnpkg.com/@cli-engine/screen/-/screen-0.0.0.tgz#c2e847c7d4d998490c9097282bf21637d5162116"
@@ -118,20 +106,20 @@
118106
dependencies:
119107
find-up "^2.1.0"
120108

121-
"@dxcli/command@^0.1.9":
122-
version "0.1.9"
123-
resolved "https://registry.yarnpkg.com/@dxcli/command/-/command-0.1.9.tgz#257806557d6e5d0957f505533e35c7e1bfd93d7a"
109+
"@dxcli/command@^0.1.10":
110+
version "0.1.10"
111+
resolved "https://registry.yarnpkg.com/@dxcli/command/-/command-0.1.10.tgz#cb5805ca3fe1d7af59af653c96388c9df64f25cc"
124112
dependencies:
125-
"@dxcli/config" "^0.1.17"
113+
"@dxcli/config" "^0.1.18"
126114
"@dxcli/parser" "^0.0.2"
127115
"@dxcli/screen" "^0.0.0"
128-
cli-ux "^3.1.0"
116+
cli-ux "^3.1.2"
129117
debug "^3.1.0"
130118
http-call "^5.0.1"
131119

132-
"@dxcli/config@^0.1.17", "@dxcli/config@^0.1.18":
133-
version "0.1.18"
134-
resolved "https://registry.yarnpkg.com/@dxcli/config/-/config-0.1.18.tgz#2f8fed892f824a65e5dc5ac8d3fdce7c3150aee6"
120+
"@dxcli/config@^0.1.18", "@dxcli/config@^0.1.20":
121+
version "0.1.20"
122+
resolved "https://registry.yarnpkg.com/@dxcli/config/-/config-0.1.20.tgz#e344d15818876663505ef7adbf71afb23a89323b"
135123
dependencies:
136124
debug "^3.1.0"
137125
fs-extra "^5.0.0"
@@ -163,17 +151,18 @@
163151
"@semantic-release/npm" "^2.6.1"
164152
semantic-release "^12.2.0"
165153

166-
"@dxcli/dev-test@^0.4.0":
167-
version "0.4.0"
168-
resolved "https://registry.yarnpkg.com/@dxcli/dev-test/-/dev-test-0.4.0.tgz#5a12fa1a3cdc783fda135f8aa2ede5c18d272bf3"
154+
"@dxcli/dev-test@^0.4.2":
155+
version "0.4.2"
156+
resolved "https://registry.yarnpkg.com/@dxcli/dev-test/-/dev-test-0.4.2.tgz#20811b603486ebb7a2ce83a51f8a7e427a2f73dd"
169157
dependencies:
170158
"@dxcli/dev-nyc-config" "^0.0.3"
171-
"@dxcli/engine" "^0.1.0"
159+
"@dxcli/engine" "^0.1.2"
172160
"@types/ansi-styles" "^2.0.30"
173161
"@types/chai" "^4.1.1"
174162
"@types/chai-as-promised" "^7.1.0"
175163
"@types/lodash" "^4.14.93"
176164
"@types/mocha" "^2.2.46"
165+
"@types/read-pkg" "^3.0.0"
177166
"@types/strip-ansi" "^3.0.0"
178167
chai "^4.1.2"
179168
chai-as-promised "^7.1.1"
@@ -190,34 +179,26 @@
190179
tslint "^5.9.1"
191180
tslint-xo "^0.5.0"
192181

193-
"@dxcli/engine@^0.1.0":
194-
version "0.1.0"
195-
resolved "https://registry.yarnpkg.com/@dxcli/engine/-/engine-0.1.0.tgz#7006bae7e8e5267e8e6338671f1d6d5870e53fc6"
182+
"@dxcli/engine@^0.1.2":
183+
version "0.1.2"
184+
resolved "https://registry.yarnpkg.com/@dxcli/engine/-/engine-0.1.2.tgz#cc25fd329cd60f6ceaadf60bf35e7895f754afa1"
196185
dependencies:
197-
"@dxcli/command" "^0.1.9"
198-
"@dxcli/config" "^0.1.18"
199-
"@dxcli/loader" "^0.0.5"
200-
cli-ux "^3.1.0"
201-
rxjs "^5.5.6"
186+
"@dxcli/command" "^0.1.10"
187+
"@dxcli/config" "^0.1.20"
188+
"@dxcli/loader" "^0.1.2"
189+
cli-ux "^3.1.2"
190+
debug "^3.1.0"
202191

203-
"@dxcli/loader@^0.0.5":
204-
version "0.0.5"
205-
resolved "https://registry.yarnpkg.com/@dxcli/loader/-/loader-0.0.5.tgz#60757837272c8a92b526f861f1959d0df8c9e619"
192+
"@dxcli/loader@^0.1.2":
193+
version "0.1.2"
194+
resolved "https://registry.yarnpkg.com/@dxcli/loader/-/loader-0.1.2.tgz#d206cd5eb3af504dbb9fe6b98a56c6947f32e23a"
206195
dependencies:
207-
"@dxcli/command" "^0.1.9"
208-
"@dxcli/config" "^0.1.17"
196+
"@dxcli/config" "^0.1.20"
209197
"@dxcli/manifest-file" "^0.0.1"
210-
"@dxcli/parser" "^0.0.2"
211-
"@heroku-cli/color" "^1.1.1"
212-
"@heroku-cli/command" "^7.0.14"
213-
ansi-escapes "^3.0.0"
214-
cli-ux "^3.1.0"
198+
cli-ux "^3.1.2"
215199
debug "^3.1.0"
216-
fs-extra "^5.0.0"
217200
globby "^7.1.1"
218201
lodash "^4.17.4"
219-
semver "^5.5.0"
220-
supports-color "^5.1.0"
221202

222203
"@dxcli/manifest-file@^0.0.1":
223204
version "0.0.1"
@@ -241,7 +222,7 @@
241222
version "0.0.0"
242223
resolved "https://registry.yarnpkg.com/@dxcli/screen/-/screen-0.0.0.tgz#a85f69bfb00d3961656bad5d7b12f8e603c7ce09"
243224

244-
"@heroku-cli/color@^1.0.4", "@heroku-cli/color@^1.1.1":
225+
"@heroku-cli/color@^1.0.4":
245226
version "1.1.1"
246227
resolved "https://registry.yarnpkg.com/@heroku-cli/color/-/color-1.1.1.tgz#a2c25239ff1196733a79cabc7a750cd46b96dc30"
247228
dependencies:
@@ -250,17 +231,6 @@
250231
strip-ansi "^4.0.0"
251232
supports-color "^5.1.0"
252233

253-
"@heroku-cli/command@^7.0.14":
254-
version "7.0.14"
255-
resolved "https://registry.yarnpkg.com/@heroku-cli/command/-/command-7.0.14.tgz#d5b3aa4f24ec29d9d63fad81ade706ff373db579"
256-
dependencies:
257-
"@cli-engine/command" "^12.1.1"
258-
"@cli-engine/config" "^5.1.0"
259-
cli-ux "^2.0.21"
260-
heroku-client "3.0.6"
261-
http-call "^4.0.8"
262-
netrc-parser "^3.0.3"
263-
264234
"@heroku/linewrap@^1.0.0":
265235
version "1.0.0"
266236
resolved "https://registry.yarnpkg.com/@heroku/linewrap/-/linewrap-1.0.0.tgz#a9d4e99f0a3e423a899b775f5f3d6747a1ff15c6"
@@ -401,6 +371,16 @@
401371
version "9.3.0"
402372
resolved "https://registry.yarnpkg.com/@types/node/-/node-9.3.0.tgz#3a129cda7c4e5df2409702626892cb4b96546dd5"
403373

374+
"@types/normalize-package-data@*":
375+
version "2.4.0"
376+
resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz#e486d0d97396d79beedd0a6e33f4534ff6b4973e"
377+
378+
"@types/read-pkg@^3.0.0":
379+
version "3.0.0"
380+
resolved "https://registry.yarnpkg.com/@types/read-pkg/-/read-pkg-3.0.0.tgz#17ab6f0b396a58a5567ee387f558f2caedc8ae53"
381+
dependencies:
382+
"@types/normalize-package-data" "*"
383+
404384
"@types/semver@^5.4.0":
405385
version "5.4.0"
406386
resolved "https://registry.yarnpkg.com/@types/semver/-/semver-5.4.0.tgz#f3658535af7f1f502acd6da7daf405ffeb1f7ee4"
@@ -957,14 +937,6 @@ cli-cursor@^2.1.0:
957937
dependencies:
958938
restore-cursor "^2.0.0"
959939

960-
cli-flags@^2.0.7:
961-
version "2.0.7"
962-
resolved "https://registry.yarnpkg.com/cli-flags/-/cli-flags-2.0.7.tgz#215b3f8d911142c3e4833eaf7f2f96ab97fd22cf"
963-
dependencies:
964-
"@cli-engine/screen" "^0.0.0"
965-
"@heroku/linewrap" "^1.0.0"
966-
ts-lodash "^4.0.8"
967-
968940
cli-table@^0.3.1:
969941
version "0.3.1"
970942
resolved "https://registry.yarnpkg.com/cli-table/-/cli-table-0.3.1.tgz#f53b05266a8b1a0b934b3d0821e6e2dc5914ae23"
@@ -989,9 +961,9 @@ cli-ux@^2.0.21:
989961
supports-color "^5.1.0"
990962
ts-lodash "^4.0.8"
991963

992-
cli-ux@^3.1.0:
993-
version "3.1.0"
994-
resolved "https://registry.yarnpkg.com/cli-ux/-/cli-ux-3.1.0.tgz#b9a7e7a30012bfc2bb20dc322044b5c0da8493ae"
964+
cli-ux@^3.1.2:
965+
version "3.1.2"
966+
resolved "https://registry.yarnpkg.com/cli-ux/-/cli-ux-3.1.2.tgz#4a273fbb24ad2390d653f1a12c047c4f39deb810"
995967
dependencies:
996968
"@dxcli/screen" "^0.0.0"
997969
"@heroku/linewrap" "^1.0.0"
@@ -1000,8 +972,7 @@ cli-ux@^3.1.0:
1000972
chalk "^2.3.0"
1001973
fs-extra "^5.0.0"
1002974
lodash "^4.17.4"
1003-
password-prompt "^1.0.3"
1004-
rxjs "^5.5.6"
975+
password-prompt "^1.0.4"
1005976
semver "^5.5.0"
1006977
strip-ansi "^4.0.0"
1007978
supports-color "^5.1.0"
@@ -1687,18 +1658,6 @@ execa@^0.7.0:
16871658
signal-exit "^3.0.0"
16881659
strip-eof "^1.0.0"
16891660

1690-
execa@^0.8.0:
1691-
version "0.8.0"
1692-
resolved "https://registry.yarnpkg.com/execa/-/execa-0.8.0.tgz#d8d76bbc1b55217ed190fd6dd49d3c774ecfc8da"
1693-
dependencies:
1694-
cross-spawn "^5.0.1"
1695-
get-stream "^3.0.0"
1696-
is-stream "^1.1.0"
1697-
npm-run-path "^2.0.0"
1698-
p-finally "^1.0.0"
1699-
signal-exit "^3.0.0"
1700-
strip-eof "^1.0.0"
1701-
17021661
execa@^0.9.0:
17031662
version "0.9.0"
17041663
resolved "https://registry.yarnpkg.com/execa/-/execa-0.9.0.tgz#adb7ce62cf985071f60580deb4a88b9e34712d01"
@@ -2266,13 +2225,6 @@ he@1.1.1:
22662225
version "1.1.1"
22672226
resolved "https://registry.yarnpkg.com/he/-/he-1.1.1.tgz#93410fd21b009735151f8868c2f271f3427e23fd"
22682227

2269-
heroku-client@3.0.6:
2270-
version "3.0.6"
2271-
resolved "https://registry.yarnpkg.com/heroku-client/-/heroku-client-3.0.6.tgz#bf603716a9d469682d4f7f80489276d82b896305"
2272-
dependencies:
2273-
is-retry-allowed "^1.0.0"
2274-
tunnel-agent "^0.6.0"
2275-
22762228
hoek@4.x.x:
22772229
version "4.2.0"
22782230
resolved "https://registry.yarnpkg.com/hoek/-/hoek-4.2.0.tgz#72d9d0754f7fe25ca2d01ad8f8f9a9449a89526d"
@@ -2287,17 +2239,6 @@ hosted-git-info@^2.1.4, hosted-git-info@^2.4.2:
22872239
version "2.5.0"
22882240
resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.5.0.tgz#6d60e34b3abbc8313062c3b798ef8d901a07af3c"
22892241

2290-
http-call@^4.0.8:
2291-
version "4.0.8"
2292-
resolved "https://registry.yarnpkg.com/http-call/-/http-call-4.0.8.tgz#fd0207764958a3f1238bb3344ff912b32ddfa64a"
2293-
dependencies:
2294-
content-type "^1.0.4"
2295-
debug "^3.1.0"
2296-
is-retry-allowed "^1.1.0"
2297-
is-stream "^1.1.0"
2298-
tslib "^1.8.1"
2299-
tunnel-agent "^0.6.0"
2300-
23012242
http-call@^5.0.1:
23022243
version "5.0.1"
23032244
resolved "https://registry.yarnpkg.com/http-call/-/http-call-5.0.1.tgz#161544092420c9189808ef05dd51df72b8789b46"
@@ -2618,7 +2559,7 @@ is-resolvable@^1.0.0:
26182559
version "1.0.1"
26192560
resolved "https://registry.yarnpkg.com/is-resolvable/-/is-resolvable-1.0.1.tgz#acca1cd36dbe44b974b924321555a70ba03b1cf4"
26202561

2621-
is-retry-allowed@^1.0.0, is-retry-allowed@^1.1.0:
2562+
is-retry-allowed@^1.1.0:
26222563
version "1.1.0"
26232564
resolved "https://registry.yarnpkg.com/is-retry-allowed/-/is-retry-allowed-1.1.0.tgz#11a060568b67339444033d0125a61a20d564fb34"
26242565

@@ -2848,10 +2789,6 @@ levn@^0.3.0, levn@~0.3.0:
28482789
prelude-ls "~1.1.2"
28492790
type-check "~0.3.2"
28502791

2851-
lex@^1.7.9:
2852-
version "1.7.9"
2853-
resolved "https://registry.yarnpkg.com/lex/-/lex-1.7.9.tgz#5d5636ccef574348362938b79a47f0eed8ed0d43"
2854-
28552792
load-json-file@^1.0.0:
28562793
version "1.1.0"
28572794
resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-1.1.0.tgz#956905708d58b4bab4c2261b04f59f31c99374c0"
@@ -3248,15 +3185,6 @@ nested-error-stacks@^1.0.0, nested-error-stacks@^1.0.1:
32483185
dependencies:
32493186
inherits "~2.0.1"
32503187

3251-
netrc-parser@^3.0.3:
3252-
version "3.0.3"
3253-
resolved "https://registry.yarnpkg.com/netrc-parser/-/netrc-parser-3.0.3.tgz#1b3e6cf85e7dc3618dc7daaf639b1fa624392852"
3254-
dependencies:
3255-
execa "^0.8.0"
3256-
fs-extra "^5.0.0"
3257-
graceful-fs "^4.1.11"
3258-
lex "^1.7.9"
3259-
32603188
node-emoji@^1.4.1:
32613189
version "1.8.1"
32623190
resolved "https://registry.yarnpkg.com/node-emoji/-/node-emoji-1.8.1.tgz#6eec6bfb07421e2148c75c6bba72421f8530a826"
@@ -3600,14 +3528,7 @@ pascalcase@^0.1.1:
36003528
version "0.1.1"
36013529
resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14"
36023530

3603-
password-prompt@^1.0.3:
3604-
version "1.0.3"
3605-
resolved "https://registry.yarnpkg.com/password-prompt/-/password-prompt-1.0.3.tgz#1478aad647c5afb65158e901bf4df0a3c367039a"
3606-
dependencies:
3607-
ansi-escapes "^3.0.0"
3608-
cross-spawn "^5.1.0"
3609-
3610-
password-prompt@^1.0.4:
3531+
password-prompt@^1.0.3, password-prompt@^1.0.4:
36113532
version "1.0.4"
36123533
resolved "https://registry.yarnpkg.com/password-prompt/-/password-prompt-1.0.4.tgz#933bac8db3528fcb27e9fdbc0a6592adcbdb5ed9"
36133534
dependencies:
@@ -4069,12 +3990,6 @@ rx@^4.1.0:
40693990
version "4.1.0"
40703991
resolved "https://registry.yarnpkg.com/rx/-/rx-4.1.0.tgz#a5f13ff79ef3b740fe30aa803fb09f98805d4782"
40713992

4072-
rxjs@^5.5.6:
4073-
version "5.5.6"
4074-
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-5.5.6.tgz#e31fb96d6fd2ff1fd84bcea8ae9c02d007179c02"
4075-
dependencies:
4076-
symbol-observable "1.0.1"
4077-
40783993
safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@~5.1.0, safe-buffer@~5.1.1:
40793994
version "5.1.1"
40803995
resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.1.tgz#893312af69b2123def71f57889001671eeb2c853"
@@ -4491,10 +4406,6 @@ supports-color@^5.1.0:
44914406
dependencies:
44924407
has-flag "^2.0.0"
44934408

4494-
symbol-observable@1.0.1:
4495-
version "1.0.1"
4496-
resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-1.0.1.tgz#8340fc4702c3122df5d22288f88283f513d3fdd4"
4497-
44984409
table@^4.0.1:
44994410
version "4.0.2"
45004411
resolved "https://registry.yarnpkg.com/table/-/table-4.0.2.tgz#a33447375391e766ad34d3486e6e2aedc84d2e36"

0 commit comments

Comments
 (0)