Skip to content

Commit 5060bd9

Browse files
committedApr 22, 2021
fix: properly export CAC in commonjs build
closes #56, closes #102
1 parent f51fc22 commit 5060bd9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed
 

‎src/index.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ export { cac, CAC, Command }
1212
if (typeof module !== 'undefined') {
1313
// @remove-for-deno
1414
module.exports = cac
15-
module.exports.default = cac
16-
module.exports.cac = cac
15+
Object.assign(module.exports, {
16+
default: cac,
17+
cac,
18+
CAC,
19+
Command,
20+
})
1721
}

0 commit comments

Comments
 (0)
Please sign in to comment.