Skip to content

Node package.json exports field not understood. #146

Open
@RobertSandiford

Description

@RobertSandiford

Hi

I am importing from a node_modules package that uses the exports field to redirect to /dist

"exports": {
    "./*": "./dist/*"
}

However these dependencies are not found and show up in the nonExistent array.

const nonExistent = []
const dependencies = dependencyTree.toList({
    filename: filePathFull,
    directory: process.cwd(),
    nonExistent,
})

I have checked moving the imported files to the root of the package, and it does then find them - so it seems that the exports field is not understood.

I may be willing to work on this, if it's not a simple fix. Would it be a filing-cabinet issue?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions