Skip to content

Commit 0fe3b6a

Browse files
committed
fix: remove cjs exports
1 parent ae9f191 commit 0fe3b6a

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

package.json

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,16 @@
1717
"type": "git",
1818
"url": "git+https://github.com/open-jike/jike-sdk.git"
1919
},
20-
"author": "三咲智子 <sxzz@sxzz.moe>",
20+
"author": "Kevin Deng <sxzz@sxzz.moe>",
2121
"files": [
22-
"*.d.ts",
2322
"dist"
2423
],
25-
"main": "dist/index.js",
26-
"module": "dist/index.js",
27-
"types": "dist/index.d.ts",
24+
"main": "./dist/index.js",
25+
"module": "./dist/index.js",
26+
"types": "./dist/index.d.ts",
2827
"exports": {
29-
".": {
30-
"types": "./dist/index.d.ts",
31-
"require": "./dist/index.cjs",
32-
"import": "./dist/index.js"
33-
},
34-
"./*": "./*"
28+
".": "./dist/index.js",
29+
"./package.json": "./package.json"
3530
},
3631
"typesVersions": {
3732
"*": {
@@ -53,7 +48,7 @@
5348
"typecheck": "tsc --noEmit",
5449
"test": "vitest",
5550
"test:deno": "cd tests/deno && deno run --allow-net --import-map=import_map.json --allow-env index.ts",
56-
"release": "bumpp && pnpm publish",
51+
"release": "bumpp",
5752
"prepublishOnly": "pnpm run build"
5853
},
5954
"dependencies": {
@@ -86,6 +81,7 @@
8681
},
8782
"prettier": "@sxzz/prettier-config",
8883
"tsdown": {
89-
"platform": "neutral"
84+
"platform": "neutral",
85+
"exports": true
9086
}
9187
}

0 commit comments

Comments
 (0)