Skip to content

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

Open
@Janpot

Description

@Janpot

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions