Use CommonJS-compatible export in TypeScript definition (#344)

This commit is contained in:
Dimitri Benin 2019-04-28 04:10:44 +00:00 committed by Sindre Sorhus
parent 7b9211be50
commit 98628d9f08
5 changed files with 284 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