-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subclassing Help
in a JavaScript project throws errors
#67
Comments
Think this is similar to oclif/plugin-plugins#97. Temporary fix/hack is to pin tslib to |
@childish-sambino Sadly, that had no effect. I still get the same errors, even with |
I have found a solution to this thanks to @bcbailey. There seems to be a problem with the fact that the const Help = require('@oclif/plugin-help').default; And now I get the expected: $ node bin/run
Hello, world! I am customized help!
VERSION
test-command/0.0.0 linux-x64 node-v12.16.2
USAGE
$ test-command [COMMAND]
COMMANDS
hello Describe the command here
help display help for test-command |
Thanks for bringing this to our attention! |
Steps to reproduce:
test-command/src/help.js
oclif.helpClass
key topackage.json
:The documentation currently only shows extending
HelpBase
in JavaScript projects, although the second example appears to be showing an example which would be extendingHelp
. If I change my example to extendHelpBase
, it fails in a different yet predictable fashion:The text was updated successfully, but these errors were encountered: