From 5d94a3ad6cba384a07e67054930d3bf13f37b477 Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Sun, 21 Aug 2022 02:50:11 +0800 Subject: [PATCH] refactor/perf: use picocolors --- lib/deployer.js | 4 ++-- package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/deployer.js b/lib/deployer.js index 4c61983..a965adf 100644 --- a/lib/deployer.js +++ b/lib/deployer.js @@ -2,7 +2,7 @@ const pathFn = require('path'); const fs = require('hexo-fs'); -const chalk = require('chalk'); +const { underline } = require('picocolors'); const nunjucks = require('nunjucks'); const moment = require('moment'); const util = require('hexo-util'); @@ -34,7 +34,7 @@ module.exports = function(args) { help += ' type: heroku\n'; help += ' repo: \n'; help += ' message: [message]\n\n'; - help += 'For more help, you can check the docs: ' + chalk.underline('http://hexo.io/docs/deployment.html'); + help += 'For more help, you can check the docs: ' + underline('http://hexo.io/docs/deployment.html'); console.log(help); return; diff --git a/package.json b/package.json index 2fac670..5b7bf4a 100644 --- a/package.json +++ b/package.json @@ -39,11 +39,11 @@ "nyc": "^15.1.0" }, "dependencies": { - "chalk": "^4.1.2", "hexo-fs": "^3.1.0", "hexo-util": "^2.5.0", "moment": "^2.29.1", - "nunjucks": "^3.2.3" + "nunjucks": "^3.2.3", + "picocolors": "^1.0.0" }, "engines": { "node": ">=12.13.0"