Use CommonJS-compatible export in TypeScript definition (#344)
This commit is contained in:
parent
7b9211be50
commit
98628d9f08
5 changed files with 284 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