Skip to content

Commit 86e9fb3

Browse files
committed
👌 IMPROVE: Add exports key to package.json
1 parent 88078b1 commit 86e9fb3

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

‎package.json‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,18 @@
1010
"markdown-it",
1111
"markdown-it-plugin"
1212
],
13-
"main": "dist/index.cjs.js",
14-
"module": "dist/index.es.js",
13+
"main": "dist/cjs/index.js",
14+
"module": "dist/mjs/index.js",
1515
"types": "dist/index.d.ts",
1616
"files": [
1717
"dist"
1818
],
19+
"exports": {
20+
".": {
21+
"import": "./dist/mjs/index.js",
22+
"require": "./dist/cjs/index.js"
23+
}
24+
},
1925
"scripts": {
2026
"format": "prettier --write src/**/*.ts tests/**/*.ts",
2127
"lint": "eslint -c .eslintrc.yml --max-warnings 1 src/**/*.ts tests/**/*.ts",

0 commit comments

Comments
 (0)