Skip to content

Commit f32d3f9

Browse files
committed
build: add types to exports field + update ignore files
- support TypeScript 4.7
1 parent 2f3357d commit f32d3f9

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
node_modules
22
.DS_Store
3-
types
4-
lib
3+
/types
4+
/lib

.npmignore

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
web_modules
2-
examples
3-
docs
4-
coverage
5-
test
6-
.github
1+
/web_modules
2+
/examples
3+
/docs
4+
/coverage
5+
/test
6+
/.github
77
screenshot.*
88
index.html
99
tsconfig.json
1010
.editorconfig
11+
.nojekyll

package.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@
2626
"author": "Damien Seguin (https://github.com/dmnsgn)",
2727
"sideEffects": false,
2828
"type": "module",
29-
"exports": "./index.js",
29+
"exports": {
30+
".": {
31+
"types": "./types/index.d.ts",
32+
"default": "./index.js"
33+
}
34+
},
3035
"main": "index.js",
3136
"types": "types/index.d.ts",
3237
"scripts": {

0 commit comments

Comments
 (0)