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

Publish type declarations #724

Merged
merged 2 commits into from Apr 8, 2024
Merged

Publish type declarations #724

merged 2 commits into from Apr 8, 2024

Conversation

RunDevelopment
Copy link
Collaborator

@RunDevelopment RunDevelopment commented Apr 7, 2024

Fixes #723

This PR makes our build process emit type declarations (.d.ts files). Since we publish the entire dist/ folder, they will be included when publishing without any further config changes. In my tests, types declarations were correctly imported, so this seems to work.

One thing to note is that this PR publishes a lot more .d.ts files than necessary. All files in lib/rules and lib/utils will have their type declarations published as well. I don't think there are any real downsides that come from this, but I think it's something we should be aware of.

Copy link

changeset-bot bot commented Apr 7, 2024

🦋 Changeset detected

Latest commit: 8dfca81

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
eslint-plugin-regexp Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Owner

@ota-meshi ota-meshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you!

@ota-meshi ota-meshi merged commit 1c37d5b into master Apr 8, 2024
7 checks passed
@ota-meshi ota-meshi deleted the issue723 branch April 8, 2024 00:28
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.

Publish type declarations
2 participants