Skip to content

Commit f250e64

Browse files
fix: oclif handler and update oclif/core to latest stable version (#1697)
Co-authored-by: Vishal Pathak <[email protected]>
1 parent d7fdaee commit f250e64

File tree

4 files changed

+33
-137
lines changed

4 files changed

+33
-137
lines changed

bin/run

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ const oclif = require('@oclif/core');
77
oclif.run()
88
.then(require('@oclif/core/flush'))
99
.catch((err) => {
10-
const oclifHandler = require('@oclif/core/handle');
11-
return oclifHandler(err.message);
10+
const { handle } = require('@oclif/core/handle');
11+
return handle(err);
1212
});

bin/run_bin

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ const oclif = require('@oclif/core');
88
oclif.run()
99
.then(require('@oclif/core/flush'))
1010
.catch((err) => {
11-
const oclifHandler = require('@oclif/core/handle');
12-
return oclifHandler(err.message);
11+
const { handle } = require('@oclif/core/handle');
12+
return handle(err);
1313
});

package-lock.json

+27-131
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"@asyncapi/raml-dt-schema-parser": "^4.0.24",
2222
"@asyncapi/studio": "^0.20.0",
2323
"@clack/prompts": "^0.7.0",
24-
"@oclif/core": "^4.0.28",
24+
"@oclif/core": "^4.2.8",
2525
"@smoya/asyncapi-adoption-metrics": "^2.4.9",
2626
"@stoplight/spectral-cli": "6.9.0",
2727
"chalk": "^4.1.0",
@@ -110,7 +110,7 @@
110110
],
111111
"hooks": {
112112
"command_not_found": [
113-
"./lib/hooks/command_not_found/myhook"
113+
"./lib/core/hooks/command_not_found/myhook"
114114
]
115115
},
116116
"macos": {

0 commit comments

Comments
 (0)