Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(exports): node 13.0-13.6 require a string fallback #1776

Merged
merged 1 commit into from Oct 11, 2020

Conversation

ljharb
Copy link
Contributor

@ljharb ljharb commented Oct 11, 2020

package.json’s "engines" field claims yargs 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 successfully in these versions.

I'm running into this because I'm trying to build tests for list-exports/ls-exports, and resolve, to cover resolution behavior in these node versions.

I've manually tested this; combined with a similar change in y18n, yargs-parser, cliui, and escalade, it fixes the bug. Since the behavior can only be observed by installing yargs into a node_modules folder and then trying to require it, it's exceedingly difficult to test in CI.

I'll be happy to make those PRs as well, if you'll accept them, and will then update this PR to bump the dep versions once published.

package.json’s "engines" field claims yargs 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 successfully in these versions.
@bcoe bcoe merged commit b45c43a into yargs:master Oct 11, 2020
@ljharb ljharb deleted the exports_field_fix branch October 11, 2020 19:10
ljharb added a commit to ljharb/yargs-parser that referenced this pull request Oct 11, 2020
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
lukeed pushed a commit to lukeed/escalade that referenced this pull request Oct 13, 2020
)

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
bcoe pushed a commit to yargs/yargs-parser that referenced this pull request Oct 14, 2020
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
bcoe pushed a commit to yargs/cliui that referenced this pull request Oct 14, 2020
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
ljharb added a commit to ljharb/y18n that referenced this pull request Oct 16, 2020
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
bcoe pushed a commit to yargs/y18n that referenced this pull request Oct 16, 2020
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
ljharb added a commit to ljharb/y18n that referenced this pull request Oct 16, 2020
…_ a string fallback

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
ljharb added a commit to ljharb/yargs-parser that referenced this pull request Oct 16, 2020
…_ a string fallback

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
bcoe pushed a commit to yargs/cliui that referenced this pull request Oct 16, 2020
…_ 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
bcoe pushed a commit to yargs/y18n that referenced this pull request Oct 16, 2020
…_ a string fallback (#105)

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
bcoe pushed a commit to yargs/yargs-parser that referenced this pull request Oct 16, 2020
…_ a string fallback (#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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants