Skip to content

Commit

Permalink
refactor/perf: use picocolors (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang authored Aug 20, 2022
1 parent 815ef4a commit 90af4b6
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/console/help.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const { underline, bold } = require('nanocolors');
const { underline, bold } = require('picocolors');
const { readFile } = require('hexo-fs');
const { join } = require('path');
const Promise = require('bluebird');
Expand Down
2 changes: 1 addition & 1 deletion lib/console/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const Promise = require('bluebird');
const { join, resolve } = require('path');
const { magenta } = require('nanocolors');
const { magenta } = require('picocolors');
const { existsSync, readdirSync, rmdir, unlink, copyDir, readdir, stat } = require('hexo-fs');
const tildify = require('tildify');
const { spawn } = require('hexo-util');
Expand Down
2 changes: 1 addition & 1 deletion lib/context.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

const logger = require('hexo-log');
const { underline } = require('nanocolors');
const { underline } = require('picocolors');
const { EventEmitter } = require('events');
const Promise = require('bluebird');
const ConsoleExtend = require('./extend/console');
Expand Down
2 changes: 1 addition & 1 deletion lib/hexo.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const { magenta } = require('nanocolors');
const { magenta } = require('picocolors');
const tildify = require('tildify');
const Promise = require('bluebird');
const Context = require('./context');
Expand Down
12 changes: 11 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"hexo-log": "^3.0.0",
"hexo-util": "^2.5.0",
"minimist": "^1.2.5",
"nanocolors": "^0.2.13",
"picocolors": "^1.0.0",
"resolve": "^1.20.0",
"tildify": "^2.0.0"
},
Expand Down

0 comments on commit 90af4b6

Please sign in to comment.