Skip to content

Commit 6f7ea33

Browse files
committed
feat!: publish esm only
1 parent 11f5f08 commit 6f7ea33

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

build.config.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ export default defineBuildConfig({
88
],
99
declaration: true,
1010
clean: true,
11-
rollup: {
12-
emitCJS: true,
13-
},
1411
hooks: {
1512
'build:done': async () => {
1613
for (const file of await glob('./dist/*.d.{cts,mts,ts}')) {

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"type": "module",
44
"version": "1.4.2",
55
"packageManager": "[email protected]",
6-
"description": "_description_",
6+
"description": "Enhance markdown-it to support async highlight function.",
77
"author": "Anthony Fu <[email protected]>",
88
"license": "MIT",
99
"funding": "https://github.com/sponsors/antfu",
@@ -17,14 +17,13 @@
1717
"sideEffects": false,
1818
"exports": {
1919
".": {
20-
"types": "./dist/index.d.ts",
21-
"import": "./dist/index.mjs",
22-
"require": "./dist/index.cjs"
20+
"types": "./dist/index.d.mts",
21+
"import": "./dist/index.mjs"
2322
}
2423
},
2524
"main": "./dist/index.mjs",
2625
"module": "./dist/index.mjs",
27-
"types": "./dist/index.d.ts",
26+
"types": "./dist/index.d.mts",
2827
"typesVersions": {
2928
"*": {
3029
"*": [

0 commit comments

Comments
 (0)