Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ljharb committed Oct 16, 2020
1 parent 68f5333 commit eca16fc
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions package.json
Expand Up @@ -3,13 +3,15 @@
"version": "7.0.2",
"description": "easily create complex multi-column command-line-interfaces",
"main": "build/index.cjs",
"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": "./index.mjs",
"scripts": {
Expand Down

0 comments on commit eca16fc

Please sign in to comment.