From 54c4613d5b80a92b8525d20d54f6d3d0f1f7edf4 Mon Sep 17 00:00:00 2001 From: Sebastian Silbermann Date: Fri, 24 Jan 2020 20:44:46 +0100 Subject: [PATCH] display pass/fail symbol for CI --- scripts/jsonlint.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/jsonlint.js b/scripts/jsonlint.js index fa5548a078c706..43f356bab22da7 100644 --- a/scripts/jsonlint.js +++ b/scripts/jsonlint.js @@ -4,8 +4,8 @@ const fse = require('fs-extra'); const glob = require('glob-gitignore'); const path = require('path'); -const passMessage = chalk.gray; -const failMessage = chalk.whiteBright; +const passMessage = message => `✓ ${chalk.gray(message)}`; +const failMessage = message => `✗ ${chalk.whiteBright(message)}`; async function run() { const workspaceRoot = path.resolve(__dirname, '..');