Skip to content

Commit

Permalink
build: add types to exports field + update ignore files
Browse files Browse the repository at this point in the history
- support TypeScript 4.7
  • Loading branch information
dmnsgn committed Jul 6, 2024
1 parent 05917c6 commit b841f11
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
node_modules
.DS_Store
types
lib
/types
/lib
13 changes: 7 additions & 6 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
web_modules
examples
docs
coverage
test
.github
/web_modules
/examples
/docs
/coverage
/test
/.github
screenshot.*
index.html
tsconfig.json
.editorconfig
.nojekyll
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@
"author": "Damien Seguin (https://github.com/dmnsgn)",
"sideEffects": false,
"type": "module",
"exports": "./index.js",
"exports": {
".": {
"types": "./types/index.d.ts",
"default": "./index.js"
}
},
"main": "index.js",
"types": "types/index.d.ts",
"scripts": {
Expand Down

0 comments on commit b841f11

Please sign in to comment.