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

Support for subpath patterns #38

Open
Pirosauro opened this issue Jun 25, 2023 · 3 comments · May be fixed by #73
Open

Support for subpath patterns #38

Pirosauro opened this issue Jun 25, 2023 · 3 comments · May be fixed by #73
Labels
enhancement New feature or request pr welcome

Comments

@Pirosauro
Copy link

Pirosauro commented Jun 25, 2023

Currently, subpath patterns defined in package.json raise an exception. Not sure if it should be considered a bug or a feature request.

package.json

...
        "./*.js": {
            "import": "./dist/*.mjs",
            "require": "./dist/*.cjs",
            "default": "./dist/*.mjs"
        }
...

Error: Could not find matching source file for export path "./dist/*.cjs

@privatenumber
Copy link
Owner

Probably a feature request. I never tried handling this because of the complexity. But should be much easier to tackle with https://github.com/privatenumber/pkg-entry-points

PR welcome!

@Pirosauro
Copy link
Author

Pirosauro commented Jun 26, 2023

nice!
I'll have a look next weekend and let you know either if I'm going to take the challenge or not

@panukettu

This comment has been minimized.

@privatenumber privatenumber added enhancement New feature or request pr welcome labels Mar 27, 2024
@privatenumber privatenumber linked a pull request Jul 19, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pr welcome
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants