Skip to content
This repository was archived by the owner on Aug 22, 2023. It is now read-only.

Commit 2184233

Browse files
committed
fix: hide EEXIT
1 parent 7d831b9 commit 2184233

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"author": "Jeff Dickey @jdxcode",
66
"bugs": "https://github.com/dxcli/command/issues",
77
"dependencies": {
8-
"@dxcli/config": "^0.1.15",
8+
"@dxcli/config": "^0.1.17",
99
"@dxcli/parser": "^0.0.2",
1010
"@dxcli/screen": "^0.0.0",
1111
"cli-ux": "^3.1.0",

src/command.ts

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export default abstract class Command {
7070
await this.run()
7171
await this.done()
7272
} catch (err) {
73+
if (err.code === 'EEXIT') throw err
7374
if (this.config && this.config.engine) {
7475
await this.config.engine.runHook('error', err)
7576
}

yarn.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@
106106
dependencies:
107107
find-up "^2.1.0"
108108

109-
"@dxcli/config@^0.1.15":
110-
version "0.1.15"
111-
resolved "https://registry.yarnpkg.com/@dxcli/config/-/config-0.1.15.tgz#ec22a4340806c0c528bfbc86b020b46bd7f2e404"
109+
"@dxcli/config@^0.1.17":
110+
version "0.1.17"
111+
resolved "https://registry.yarnpkg.com/@dxcli/config/-/config-0.1.17.tgz#e077873abfa4247e2b66be4813f46eeb8ee94df9"
112112
dependencies:
113113
debug "^3.1.0"
114114
fs-extra "^5.0.0"

0 commit comments

Comments
 (0)