Skip to content

Commit

Permalink
fix: add missing cjs entry in package (#3967)
Browse files Browse the repository at this point in the history
  • Loading branch information
frantic1048 committed Mar 11, 2024
1 parent 6ae3c6a commit 9cea6fd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 4 additions & 0 deletions @commitlint/cz-commitlint/index.cjs
@@ -0,0 +1,4 @@
/** @type {Awaited<typeof import('./lib/index.js')>['prompter']} */
exports.prompter = async (...args) => {
(await import('./lib/index.js')).prompter(...args);
};
3 changes: 2 additions & 1 deletion @commitlint/cz-commitlint/package.json
Expand Up @@ -6,9 +6,10 @@
"main": "./lib/index.js",
"exports": {
"import": "./lib/index.js",
"require": "./lib/index.cjs"
"require": "./index.cjs"
},
"files": [
"index.cjs",
"lib"
],
"keywords": [
Expand Down
4 changes: 0 additions & 4 deletions @commitlint/cz-commitlint/src/index.cjs

This file was deleted.

0 comments on commit 9cea6fd

Please sign in to comment.