Skip to content

Commit

Permalink
fix: module type and package exports
Browse files Browse the repository at this point in the history
  • Loading branch information
shahradelahi committed Apr 18, 2024
1 parent 0dda49e commit f6c89b3
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "@litehex/node-checksum",
"version": "0.1.2",
"description": "A simple node.js module to calculate checksum with different algorithms",
"main": "dist/lib.js",
"module": "dist/lib.mjs",
"types": "dist/lib.d.ts",
"main": "dist/lib.cjs",
"module": "dist/lib.js",
"types": "dist/lib.d.cts",
"bin": {
"checksum": "dist/cli.js"
},
Expand All @@ -14,15 +14,16 @@
"exports": {
".": {
"import": {
"types": "./dist/lib.d.mts",
"default": "./dist/lib.mjs"
},
"require": {
"types": "./dist/lib.d.ts",
"default": "./dist/lib.js"
},
"require": {
"types": "./dist/lib.d.cts",
"default": "./dist/lib.cjs"
}
}
},
"type": "module",
"scripts": {
"dev": "tsup --watch",
"build": "tsup",
Expand Down

0 comments on commit f6c89b3

Please sign in to comment.