Skip to content

Commit

Permalink
fix(config-conventional): add esm wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
dargmuesli committed Feb 13, 2024
1 parent b91a5f1 commit 61fc18b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions @commitlint/config-conventional/package.json
Expand Up @@ -6,8 +6,8 @@
"exports": {
".": {
"types": "./lib/index.d.ts",
"require": "./lib/index.js",
"import": "./lib/index.js"
"import": "./wrapper.mjs",
"require": "./lib/index.js"
}
},
"files": [
Expand Down
4 changes: 4 additions & 0 deletions @commitlint/config-conventional/wrapper.mjs
@@ -0,0 +1,4 @@
import config, {parserPreset, prompt, rules} from './lib';

export {parserPreset, prompt, rules};
export default config;

0 comments on commit 61fc18b

Please sign in to comment.