Skip to content

Commit 1c37d5b

Browse files
Publish type declarations (#724)
* Publish type declarations * Create mean-peas-give.md
1 parent 35c8153 commit 1c37d5b

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.changeset/mean-peas-give.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"eslint-plugin-regexp": patch
3+
---
4+
5+
Publish type declarations

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"node": "^18 || >=20"
77
},
88
"main": "dist/index.js",
9+
"types": "dist/index.d.ts",
910
"files": [
1011
"dist"
1112
],

tsconfig.build.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"extends": "./tsconfig.json",
33
"exclude": ["tests/**/*", "tools/**/*", "typings/**/*", "docs/**/*"],
44
"compilerOptions": {
5-
"removeComments": true /* Do not emit comments to output. */
5+
"removeComments": true /* Do not emit comments to output. */,
6+
"declaration": true /* Generates corresponding '.d.ts' file. */
67
}
78
}

0 commit comments

Comments
 (0)