Skip to content
Permalink
Browse files
fix(exports): node 13.0-13.6 require a string fallback (#103)
package.json’s "engines" field claims yargs-parser supports node >= 10; node v13.0-v13.6 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 091c7cd commit e39921e1017f88f5d8ea97ddea854ffe92d68e74
Showing with 7 additions and 4 deletions.
  1. +7 −4 package.json
@@ -2,10 +2,13 @@
"name": "y18n",
"version": "5.0.2",
"description": "the bare-bones internationalization library used by yargs",
"exports": {
"import": "./index.mjs",
"require": "./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 e39921e

Please sign in to comment.