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

publishing deep-dive is out of date regarding "exports" #3088

Open
jason-ha opened this issue May 5, 2024 · 0 comments
Open

publishing deep-dive is out of date regarding "exports" #3088

jason-ha opened this issue May 5, 2024 · 0 comments

Comments

@jason-ha
Copy link

jason-ha commented May 5, 2024

Page URL: https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html

publishing.html mentions "types" and "typings" fields but there are no comments about "exports" which I believe can supersede those. And I think they do not apply when there is a subpath based on documentation from https://www.typescriptlang.org/docs/handbook/modules/reference.html#packagejson-main-and-types.

https://www.typescriptlang.org/docs/handbook/modules/reference.html#packagejson-exports has good information about resolving; so, one could work backward if just given a reference there. But specific guidance on authoring is probably best.

"typings" is listed as an alias on publishing.html but is noted as legacy on modules/reference.html.

@jason-ha jason-ha changed the title publisihng deep-dive is out of date regarding "exports" publishing deep-dive is out of date regarding "exports" May 5, 2024
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