Skip to content

Commit e39921e

Browse files
authored
fix(exports): node 13.0-13.6 require a string fallback (#103)
package.json’s "engines" field claims yargs-parser supports node >= 10; node v13.0-v13.6 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 091c7cd commit e39921e

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

package.json

+7-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@
22
"name": "y18n",
33
"version": "5.0.2",
44
"description": "the bare-bones internationalization library used by yargs",
5-
"exports": {
6-
"import": "./index.mjs",
7-
"require": "./build/index.cjs"
8-
},
5+
"exports": [
6+
{
7+
"import": "./index.mjs",
8+
"require": "./build/index.cjs"
9+
},
10+
"./build/index.cjs"
11+
],
912
"type": "module",
1013
"module": "./build/lib/index.js",
1114
"keywords": [

0 commit comments

Comments
 (0)