Skip to content
Permalink
Browse files
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
  • Loading branch information
ljharb committed Oct 16, 2020
1 parent 3c4e241 commit 4f85d80dbaae6d2c7899ae394f7ad97805df4886
Showing with 9 additions and 7 deletions.
  1. +9 −7 package.json
@@ -2,13 +2,15 @@
"name": "y18n",
"version": "5.0.3",
"description": "the bare-bones internationalization library used by yargs",
"exports": [
{
"import": "./index.mjs",
"require": "./build/index.cjs"
},
"./build/index.cjs"
],
"exports": {
".": [
{
"import": "./index.mjs",
"require": "./build/index.cjs"
},
"./build/index.cjs"
]
},
"type": "module",
"module": "./build/lib/index.js",
"keywords": [

0 comments on commit 4f85d80

Please sign in to comment.