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

Node package.json exports field not understood. #146

Open
RobertSandiford opened this issue Jun 11, 2022 · 0 comments
Open

Node package.json exports field not understood. #146

RobertSandiford opened this issue Jun 11, 2022 · 0 comments

Comments

@RobertSandiford
Copy link

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

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

No branches or pull requests

1 participant