Skip to content

Commit 21e26bb

Browse files
chore: fix ESM package
1 parent f9f3430 commit 21e26bb

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"commitlint",
77
"config",
88
"team23",
9-
"conventional-commits"
9+
"conventional-commits",
10+
"esm"
1011
],
1112
"author": "TEAM23",
1213
"license": "MIT",
@@ -18,6 +19,11 @@
1819
"files": [
1920
"src/main.js"
2021
],
22+
"exports": {
23+
".": {
24+
"import": "./src/main.js"
25+
}
26+
},
2127
"type": "module",
2228
"dependencies": {
2329
"@commitlint/config-conventional": "19.8.1"

src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as config from '@commitlint/config-conventional';
1+
import config from '@commitlint/config-conventional';
22

33
// add 'sec' and 'release' types
44
const types = config.rules['type-enum'][2].concat(['sec', 'release']);

0 commit comments

Comments
 (0)