From 26a09f08cf1ed43c640879f23fdad56c5c9282f7 Mon Sep 17 00:00:00 2001 From: HelenHuang <LinHuang@pollex.com.tw> Date: 星期四, 09 六月 2022 15:02:38 +0800 Subject: [PATCH] TODO#139884 Banner 1 文案調整 --- PAMapp/node_modules/launch-editor/index.js | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/PAMapp/node_modules/launch-editor/index.js b/PAMapp/node_modules/launch-editor/index.js index 139901e..20bd59e 100644 --- a/PAMapp/node_modules/launch-editor/index.js +++ b/PAMapp/node_modules/launch-editor/index.js @@ -11,7 +11,7 @@ const fs = require('fs') const os = require('os') const path = require('path') -const chalk = require('chalk') +const colors = require('picocolors') const childProcess = require('child_process') const guessEditor = require('./guess') @@ -21,14 +21,14 @@ return (fileName, errorMessage) => { console.log() console.log( - chalk.red('Could not open ' + path.basename(fileName) + ' in the editor.') + colors.red('Could not open ' + path.basename(fileName) + ' in the editor.') ) if (errorMessage) { if (errorMessage[errorMessage.length - 1] !== '.') { errorMessage += '.' } console.log( - chalk.red('The editor process exited with an error: ' + errorMessage) + colors.red('The editor process exited with an error: ' + errorMessage) ) } console.log() -- Gitblit v1.8.0