Skip to content

Commit eca16fc

Browse files
authored
fix(exports): node 13.0 and 13.1 require the dotted object form _with_ a string fallback (#93)
package.json’s "engines" field claims yargs-parser supports node >= 10; node v13.0 and v13.1 are included in this semver range. This change is required to be able to require() from yargs-parser successfully in these versions. See yargs/yargs#1776
1 parent 68f5333 commit eca16fc

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

package.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
"version": "7.0.2",
44
"description": "easily create complex multi-column command-line-interfaces",
55
"main": "build/index.cjs",
6-
"exports": [
7-
{
8-
"import": "./index.mjs",
9-
"require": "./build/index.cjs"
10-
},
11-
"./build/index.cjs"
12-
],
6+
"exports": {
7+
".": [
8+
{
9+
"import": "./index.mjs",
10+
"require": "./build/index.cjs"
11+
},
12+
"./build/index.cjs"
13+
]
14+
},
1315
"type": "module",
1416
"module": "./index.mjs",
1517
"scripts": {

0 commit comments

Comments
 (0)