You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Short option flag longer than a single character](#short-option-flag-longer-than-a-single-character)
17
+
-[Import from `commander/esm.mjs`](#import-from-commanderesmmjs)
17
18
18
19
## RegExp .option() parameter
19
20
@@ -190,3 +191,19 @@ Deprecated from Commander v8.
190
191
Short option flags like `-ws` were never supported, but the old README did not make this clear. The README now states that short options are a single character.
191
192
192
193
README updated in Commander v3. Deprecated from Commander v9.
194
+
195
+
## Import from `commander/esm.mjs`
196
+
197
+
The first support for named imports required an explicit entry file.
198
+
199
+
```js
200
+
import { Command } from'commander/esm.mjs';
201
+
```
202
+
203
+
This is no longer required, just import directly from the module.
204
+
205
+
```js
206
+
import { Command } from'commander';
207
+
```
208
+
209
+
README updated in Commander v9. Deprecated from Commander v9.
0 commit comments