ota-meshi / eslint-plugin-regexp

ESLint plugin for finding regex mistakes and style guide violations.
https://ota-meshi.github.io/eslint-plugin-regexp/
MIT License
689 stars 10 forks source link

Publish type declarations #724

Closed RunDevelopment closed 5 months ago

RunDevelopment commented 5 months ago

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.

changeset-bot[bot] commented 5 months ago

🦋 Changeset detected

Latest commit: 8dfca81a87446ad42a479eef09d5019cfc611ef5

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