Skip to content

Commit 8d71865

Browse files
committed
fix: add exports for esm
1 parent c921cc4 commit 8d71865

File tree

3 files changed

+141
-133
lines changed

3 files changed

+141
-133
lines changed

package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@
1313
"markdown-it",
1414
"markdown"
1515
],
16+
"exports": {
17+
".": {
18+
"types": "./dist/index.d.ts",
19+
"import": "./dist/index.js",
20+
"require": "./dist/index.cjs"
21+
}
22+
},
1623
"main": "dist/index.js",
1724
"types": "dist/index.d.ts",
1825
"files": [
@@ -33,7 +40,7 @@
3340
"@types/markdown-it": "^14.1.2",
3441
"@types/markdown-it-container": "^2.0.10",
3542
"bumpp": "^9.5.2",
36-
"eslint": "^9.9.0",
43+
"eslint": "^9.9.1",
3744
"markdown-it": "^14.1.0",
3845
"markdown-it-container": "^4.0.0",
3946
"sass": "^1.77.8",

0 commit comments

Comments
 (0)