Skip to content

Commit

Permalink
fix(exports): node 13.0 and 13.1 require the dotted object form _with…
Browse files Browse the repository at this point in the history
…_ a string fallback (yargs#336)

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 authored Oct 16, 2020
1 parent 3fe41fe commit 3ae7242
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
"version": "20.2.2",
"description": "the mighty option parser used by yargs",
"main": "build/index.cjs",
"exports": [
{
"import": "./build/lib/index.js",
"require": "./build/index.cjs"
},
"./build/index.cjs"
],
"exports": {
".": [
{
"import": "./build/lib/index.js",
"require": "./build/index.cjs"
},
"./build/index.cjs"
]
},
"type": "module",
"module": "./build/lib/index.js",
"scripts": {
Expand Down

0 comments on commit 3ae7242

Please sign in to comment.