Skip to content

Commit 4f85d80

Browse files
authored
fix(exports): node 13.0 and 13.1 require the dotted object form _with_ a string fallback (#105)
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 3c4e241 commit 4f85d80

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
@@ -2,13 +2,15 @@
22
"name": "y18n",
33
"version": "5.0.3",
44
"description": "the bare-bones internationalization library used by yargs",
5-
"exports": [
6-
{
7-
"import": "./index.mjs",
8-
"require": "./build/index.cjs"
9-
},
10-
"./build/index.cjs"
11-
],
5+
"exports": {
6+
".": [
7+
{
8+
"import": "./index.mjs",
9+
"require": "./build/index.cjs"
10+
},
11+
"./build/index.cjs"
12+
]
13+
},
1214
"type": "module",
1315
"module": "./build/lib/index.js",
1416
"keywords": [

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy