Skip to content

Commit c9ee6c4

Browse files
committed
feat(TS): add types so that rules can be used in TS eslint.config files
1 parent 1fb9414 commit c9ee6c4

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"name": "eslint-plugin-vue-scoped-css",
3-
"version": "2.9.0",
3+
"version": "2.9.1",
44
"description": "ESLint plugin for Scoped CSS in Vue.js",
55
"main": "dist/index.js",
6+
"types": "dist/index.d.ts",
67
"scripts": {
78
"prebuild": "npm run -s clean",
89
"build": "tsc --project ./tsconfig.build.json",
@@ -49,7 +50,8 @@
4950
"css"
5051
],
5152
"files": [
52-
"dist"
53+
"dist",
54+
"dist/index.d.ts"
5355
],
5456
"devDependencies": {
5557
"@changesets/cli": "^2.27.5",

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/**/*"],
44
"compilerOptions": {
5-
"removeComments": true /* Do not emit comments to output. */
5+
"removeComments": true, /* Do not emit comments to output. */
6+
"declaration": true
67
}
78
}

0 commit comments

Comments
 (0)