From cf9fb19c169f446f5bc50b33f8d493cafd8f4b05 Mon Sep 17 00:00:00 2001 From: Maxime Thirouin Date: Wed, 5 Jul 2017 22:34:46 +0200 Subject: [PATCH] Docs: fix chalk update issue --- docs/src/modules/playground/index.js | 4 ++-- package.json | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/src/modules/playground/index.js b/docs/src/modules/playground/index.js index 3ec191a..669320a 100644 --- a/docs/src/modules/playground/index.js +++ b/docs/src/modules/playground/index.js @@ -4,7 +4,7 @@ import messagesStyles from "./messages.styles" const bullet = "›" -import colors from "chalk" +import stripColor from "strip-ansi" function playground(opts) { opts.options = opts.options || {} @@ -29,7 +29,7 @@ function playground(opts) { const messages = result.warnings() if (messages.length) { opts.messages.textContent = - `${ bullet } ${ colors.stripColor( + `${ bullet } ${ stripColor( messages.map(message => message.toString()) ).join("\n\n\n" + bullet + " ") }` } diff --git a/package.json b/package.json index c138ae6..e3c3fa8 100644 --- a/package.json +++ b/package.json @@ -107,6 +107,7 @@ "react-dom": "^15.0.0-rc.1", "react-svg-inline": "^1.0.1", "rimraf": "^2.4.3", + "strip-ansi": "^4.0.0", "style-loader": "^0.12.2", "tape": "^4.2.0", "to-slug-case": "^0.1.2",