Skip to content

Commit

Permalink
chore: use exports instead of module
Browse files Browse the repository at this point in the history
  • Loading branch information
jsun969 committed Jan 7, 2024
1 parent 361d955 commit 21a5a2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"description": "Submit simple form, with safe types, without management!",
"type": "module",
"main": "dist/index.js",
"module": "dist/index.js",
"exports": {
".": "./dist/index.js"
},
"types": "dist/index.d.ts",
"browser": "dist/index.global.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"sourceMap": true,
"target": "ES6",
"module": "ESNext",
"moduleResolution": "Node",
"moduleResolution": "Bundler",
"jsx": "react-jsx",
"skipLibCheck": true,
"noEmit": true,
Expand Down

0 comments on commit 21a5a2e

Please sign in to comment.