Use CommonJS compatible export in TypeScript definition
This commit is contained in:
parent
7b9211be50
commit
a2f90271ae
5 changed files with 281 additions and 274 deletions
1
index.js
1
index.js
|
|
@ -199,4 +199,3 @@ Object.defineProperties(Chalk.prototype, styles);
|
|||
|
||||
module.exports = Chalk(); // eslint-disable-line new-cap
|
||||
module.exports.supportsColor = stdoutColor;
|
||||
module.exports.default = module.exports; // For TypeScript
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue