Use CommonJS compatible export in TypeScript definition

This commit is contained in:
Dimitri Benin 2019-04-27 18:03:10 +02:00
parent 7b9211be50
commit a2f90271ae
5 changed files with 281 additions and 274 deletions

View file

@ -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