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.