Skip to content

Commit

Permalink
build: add exports to package (#547)
Browse files Browse the repository at this point in the history
* exports cjs/esm

* add module/types to package
  • Loading branch information
philihp authored Jul 5, 2024
1 parent 2b7905d commit e762f93
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,16 @@
"license": "MIT",
"sideEffects": false,
"type": "module",
"main": "./dist/index.js",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.cjs",
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
}
},
"scripts": {
"build": "tsup",
"lint": "eslint .",
Expand All @@ -17,6 +26,7 @@
},
"files": [
"/dist/",
"package.json",
"!/dist/**/__tests__/*.js"
],
"keywords": [
Expand Down

0 comments on commit e762f93

Please sign in to comment.