Skip to content

Commit

Permalink
refactor/perf: use picocolors
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang committed Aug 20, 2022
1 parent 6ccd164 commit 5d94a3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/deployer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -34,7 +34,7 @@ module.exports = function(args) {
help += ' type: heroku\n';
help += ' repo: <repository url>\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;
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 5d94a3a

Please sign in to comment.