Skip to content

Commit

Permalink
fix(exports): node 13.0-13.6 require a string fallback (#91)
Browse files Browse the repository at this point in the history
package.json’s "engines" field claims cliui supports node >= 10; node v13.0-v13.6 are included in this semver range. This change is required to be able to require() from cli-ui successfully in these versions.

See yargs/yargs#1776
  • Loading branch information
ljharb committed Oct 14, 2020
1 parent 532489b commit b529d7e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions package.json
Expand Up @@ -3,10 +3,13 @@
"version": "7.0.1",
"description": "easily create complex multi-column command-line-interfaces",
"main": "build/index.cjs",
"exports": {
"import": "./index.mjs",
"require": "./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 b529d7e

Please sign in to comment.