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 package self-referencing using its name #2312

Closed
PaperStrike opened this issue Jun 12, 2022 · 1 comment
Closed

Support package self-referencing using its name #2312

PaperStrike opened this issue Jun 12, 2022 · 1 comment

Comments

@PaperStrike
Copy link

Node.js allows one to self-reference the package by the package's name:
https://nodejs.org/api/packages.html#self-referencing-a-package-using-its-name

This is helpful for writing tests that reference the package instead of directly to the files, by that we can avoid import paths like ../../../src/xxx, and test if the exports field is in the correct format to be consumed.

Thank you!

@evanw
Copy link
Owner

evanw commented Jun 13, 2022

I was wondering if/when someone was going to ask for this. You are the first! I can look into it.

@evanw evanw closed this as completed in 7997546 Jun 15, 2022
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

2 participants