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

Do not include subpaths when the target is set to null #242

Open
Janpot opened this issue Feb 28, 2025 · 0 comments
Open

Do not include subpaths when the target is set to null #242

Janpot opened this issue Feb 28, 2025 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@Janpot
Copy link

Janpot commented Feb 28, 2025

As per https://nodejs.org/api/packages.html#subpath-patterns

To exclude private subfolders from patterns, null targets can be used:

// ./node_modules/es-module-package/package.json
{
  "exports": {
    "./features/*.js": "./src/features/*.js",
    "./features/private-internal/*": null
  }
} 

The cli currently checks those paths and reports them as broken, but they should be omitted from checking as they are not exported.

@andrewbranch andrewbranch added bug Something isn't working help wanted Extra attention is needed labels Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants