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

Commit

Permalink
fix: rethrow cli-ux errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 5, 2018
1 parent 4e8a2ce commit 23c3d2f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"bugs": "https://github.com/anycli/config/issues",
"dependencies": {},
"devDependencies": {
"@anycli/parser": "^3.2.3",
"@anycli/parser": "^3.2.4",
"@anycli/tslint": "^0.2.5",
"@types/chai": "^4.1.2",
"@types/globby": "^6.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export class Plugin implements IPlugin {

await search(require(p))(opts)
} catch (err) {
if (err.code === 'EEXIT') throw err
if (err && err['cli-ux'] && err['cli-ux'].exit !== undefined) throw err
process.emitWarning(err)
}
})
Expand Down
13 changes: 3 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,9 @@
# yarn lockfile v1


"@anycli/parser@^3.2.3":
version "3.2.3"
resolved "https://registry.yarnpkg.com/@anycli/parser/-/parser-3.2.3.tgz#cbc2c25e21b8b7e127986a5287596a7c0aaffe2d"
dependencies:
"@anycli/screen" "^0.0.3"
lodash "^4.17.4"

"@anycli/screen@^0.0.3":
version "0.0.3"
resolved "https://registry.yarnpkg.com/@anycli/screen/-/screen-0.0.3.tgz#f0afd970c3ed725702948a45a874ede1fdd9362e"
"@anycli/parser@^3.2.4":
version "3.2.4"
resolved "https://registry.yarnpkg.com/@anycli/parser/-/parser-3.2.4.tgz#30297ac2fa225b37efaab5c0062bf189988b3ce8"

"@anycli/tslint@^0.2.5":
version "0.2.5"
Expand Down

0 comments on commit 23c3d2f

Please sign in to comment.