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

fix: build declarations to dist/types and types entrypoint #777

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

0xRezaa
Copy link
Contributor

@0xRezaa 0xRezaa commented Feb 13, 2024

This PR changes 2 things related to the types in whole core3-utils

  1. Sets the directory for the build declarations to dist/types. No more types and types source maps in dist/cjs or dist/esm directory. No more duplicate declarations in cjs and esm build dist.
  2. Sets the types filed in the package.json of each package. This provides an entrypoint (dist/types/index.d.ts) for ts to understand the types of the package. See: https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html#folder-redirects-using-

@0xRezaa 0xRezaa changed the title fix(types): build declarations to dist/types fix: build declarations to dist/types and types entrypoint Feb 13, 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

Successfully merging this pull request may close these issues.

1 participant