Skip to content

Commit

Permalink
Add support for CJS (#803)
Browse files Browse the repository at this point in the history
  • Loading branch information
mirasayon authored Oct 23, 2024
1 parent 76a16fc commit 13bb270
Showing 1 changed file with 21 additions and 17 deletions.
38 changes: 21 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,27 @@
"dist"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./config": {
"types": "./dist/config.d.ts",
"import": "./dist/config.js"
},
"./consts": {
"types": "./dist/consts.d.ts",
"import": "./dist/consts.js"
},
"./utils": {
"types": "./dist/utils/index.d.ts",
"import": "./dist/utils/index.js"
}
},
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./dist/index.js"
},
"./config": {
"types": "./dist/config.d.ts",
"import": "./dist/config.js",
"require": "./dist/config.js"
},
"./consts": {
"types": "./dist/consts.d.ts",
"import": "./dist/consts.js",
"require": "./dist/consts.js"
},
"./utils": {
"types": "./dist/utils/index.d.ts",
"import": "./dist/utils/index.js",
"require": "./dist/utils/index.js"
}
},
"scripts": {
"build": "npx tsc",
"test": "vitest"
Expand Down

0 comments on commit 13bb270

Please sign in to comment.