Skip to content

Commit

Permalink
fix: properly export CAC in commonjs build
Browse files Browse the repository at this point in the history
closes #56, closes #102
  • Loading branch information
egoist committed Apr 22, 2021
1 parent f51fc22 commit 5060bd9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ export { cac, CAC, Command }
if (typeof module !== 'undefined') {
// @remove-for-deno
module.exports = cac
module.exports.default = cac
module.exports.cac = cac
Object.assign(module.exports, {
default: cac,
cac,
CAC,
Command,
})
}

0 comments on commit 5060bd9

Please sign in to comment.