Fix compatibility.
This commit is contained in:
parent
fc4a996818
commit
ad1a43212d
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
|
@ -224,5 +224,5 @@ function chalkTag(chalk, strings) {
|
|||
Object.defineProperties(Chalk.prototype, styles);
|
||||
|
||||
module.exports = Chalk(); // eslint-disable-line new-cap
|
||||
module.exports.supportsColor = supportsColor;
|
||||
module.exports.supportsColor = supportsColor.stdout;
|
||||
module.exports.default = module.exports; // For TypeScript
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue