Skip to content
This repository was archived by the owner on Oct 26, 2024. It is now read-only.

Commit ae542ac

Browse files
Merge pull request #23 from mmx900/master
Add type declaration file
2 parents cc2505b + 60b78e9 commit ae542ac

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@
1919
"private": false,
2020
"main": "dist/stimulus-checkbox-select-all.umd.js",
2121
"module": "dist/stimulus-checkbox-select-all.mjs",
22+
"types": "index.d.ts",
2223
"scripts": {
2324
"format": "prettier-standard '**/*.{ts,css,html}' --format",
2425
"lint": "prettier-standard '**/*.{ts,css,html}' --lint",
2526
"dev": "vite",
2627
"prod": "vite build --mode netlify",
27-
"build": "tsc --noEmit && vite build",
28+
"build": "tsc --noEmit false --declaration true --emitDeclarationOnly true --outDir . && vite build",
2829
"version": "yarn build",
2930
"test": "BABEL_ENV=test jest",
3031
"np": "np --no-2fa"

tsconfig.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,11 @@
55
"types": ["vite/client", "jest"],
66
"skipLibCheck": true,
77
"moduleResolution": "node"
8-
}
8+
},
9+
"exclude": [
10+
"dist"
11+
],
12+
"include": [
13+
"src/**/*"
14+
]
915
}

0 commit comments

Comments
 (0)