ljharb/list-exports

Issue with subpath globs?

Closed

#79 opened on Jan 16, 2022

 (2 comments) (0 reactions) (0 assignees)JavaScript (6 forks)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (14 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Running ls-exports against my react-utils package, it's telling me it can't resolve any of the subpath exports I've defined.

Example: https://github.com/Twipped/react-utils/blob/1d81497bd08b9b7450ac66880f6c3f2e58b8b6a3/package.json#L50

!! Errors:
┌─────────────────────────────────────────────────────────┬─────────────────────────────────────────────────────────┬───────────────────────────────────────────────────┐
│ “./hooks/*”: ./src/hooks/*.js does not appear to exist! │ “./quick/*”: ./src/quick/*.js does not appear to exist! │ “./ui/*”: ./src/ui/*.js does not appear to exist! │
└─────────────────────────────────────────────────────────┴─────────────────────────────────────────────────────────┴───────────────────────────────────────────────────┘

Am I defining these wrong, or is this a bug?

Contributor guide