Skip to content

Commit

Permalink
fix(exports): support require fallback for Node 13.0-13.6 versions (#6
Browse files Browse the repository at this point in the history
)

package.json’s "engines" field claims cliui supports node >= 6; node v13.0-v13.6 are included in this semver range. This change is required to be able to require() from escalade successfully in these versions.

See yargs/yargs#1776
  • Loading branch information
ljharb committed Oct 13, 2020
1 parent 7174879 commit a2297e1
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions package.json
Expand Up @@ -13,14 +13,20 @@
"url": "https://lukeed.com"
},
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"./sync": {
"import": "./sync/index.mjs",
"require": "./sync/index.js"
}
".": [
{
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"./dist/index.js"
],
"./sync": [
{
"import": "./sync/index.mjs",
"require": "./sync/index.js"
},
"./sync/index.js"
]
},
"files": [
"*.d.ts",
Expand Down

0 comments on commit a2297e1

Please sign in to comment.