Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Commit cf9fb19

Browse files
committedJul 5, 2017
Docs: fix chalk update issue
1 parent b7d6ffd commit cf9fb19

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
 

‎docs/src/modules/playground/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import messagesStyles from "./messages.styles"
44

55
const bullet = "›"
66

7-
import colors from "chalk"
7+
import stripColor from "strip-ansi"
88

99
function playground(opts) {
1010
opts.options = opts.options || {}
@@ -29,7 +29,7 @@ function playground(opts) {
2929
const messages = result.warnings()
3030
if (messages.length) {
3131
opts.messages.textContent =
32-
`${ bullet } ${ colors.stripColor(
32+
`${ bullet } ${ stripColor(
3333
messages.map(message => message.toString())
3434
).join("\n\n\n" + bullet + " ") }`
3535
}

‎package.json

+1
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@
107107
"react-dom": "^15.0.0-rc.1",
108108
"react-svg-inline": "^1.0.1",
109109
"rimraf": "^2.4.3",
110+
"strip-ansi": "^4.0.0",
110111
"style-loader": "^0.12.2",
111112
"tape": "^4.2.0",
112113
"to-slug-case": "^0.1.2",

0 commit comments

Comments
 (0)
This repository has been archived.