Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions esm.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const {
createOption,
CommanderError,
InvalidArgumentError,
InvalidOptionArgumentError, // deprecated old name
Command,
Argument,
Option,
Expand Down
3 changes: 2 additions & 1 deletion tests/esm-imports-test.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { program, Command, Option, Argument, CommanderError, InvalidArgumentError, Help, createCommand, createArgument, createOption } from '../esm.mjs';
import { program, Command, Option, Argument, CommanderError, InvalidArgumentError, InvalidOptionArgumentError, Help, createCommand, createArgument, createOption } from '../esm.mjs';

// Do some simple checks that expected imports are available at runtime.
// Run using `npm run test-esm`.
Expand All @@ -25,6 +25,7 @@ checkClass(new Command(), 'Command');
checkClass(new Option('-e, --example'), 'Option');
checkClass(new CommanderError(1, 'code', 'failed'), 'CommanderError');
checkClass(new InvalidArgumentError('failed'), 'InvalidArgumentError');
checkClass(new InvalidOptionArgumentError('failed'), 'InvalidArgumentError');
checkClass(new Help(), 'Help');
checkClass(new Argument('<file>'), 'Argument');

Expand Down