-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow exporting commands in any top-level export manner
Like `module.exports = class Foo extends Command` or `exports.foo = class Foo extends Command`. `exports.default` will still work. `exports.<any value>` is valid. As long as the class is not nested any deeper than that it will be found. With regards to Typescript or Babel exporting, both `export class Foo...` and `export default class Foo...` will work. So now it's just down to preference.
- Loading branch information
Showing
1 changed file
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters