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

Specify exports via package.json exports field #26

Merged
merged 2 commits into from
Dec 15, 2023

Conversation

jorins
Copy link
Contributor

@jorins jorins commented Dec 13, 2023

Solves #14. Can now import using e.g. import types from 't4t/types' and the file structure could be flattened. Library names have been pluralised.

@jorins
Copy link
Contributor Author

jorins commented Dec 14, 2023

This does not quite work with typedoc by itself, but typedoc pick up on modules re-exported from index.ts:
image

This may be worth revisiting if typedoc implements solves the issue, but I think we should be exporting submodules from the index anyway and there's no hindrance.

@jorins jorins merged commit 82dbf32 into main Dec 15, 2023
5 checks passed
@jorins jorins deleted the refactor/package-json-exports branch December 15, 2023 18:21
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

Successfully merging this pull request may close these issues.

1 participant