Skip to content

Commit bd92083

Browse files
committed
replace chalk with chalk
1 parent cda0478 commit bd92083

File tree

4 files changed

+13
-38
lines changed

4 files changed

+13
-38
lines changed

fsr.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const fs = require('fs');
22
const path = require('path');
3-
const colors = require('colors');
3+
const chalk = require('chalk');
44
const prompts = require('prompts');
55
const util = require('./util');
66

@@ -28,10 +28,10 @@ function upload(receiver, to, data, release, content, file, callback) {
2828
} else {
2929
let time = '[' + util.now(true) + ']';
3030
process.stdout.write(
31-
'\n - '.green.bold +
32-
time.grey + ' ' +
31+
chalk.green.bold('\n - ') +
32+
chalk.grey(time) + ' ' +
3333
subpath.replace(/^\//, '') +
34-
' >> '.yellow.bold +
34+
chalk.yellow.bold(' >> ') +
3535
data.to
3636
);
3737
callback();

index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const path = require('path');
2-
const colors = require('colors');
2+
const chalk = require('chalk');
33
const util = require('./util');
44

55
/**
@@ -37,10 +37,10 @@ module.exports = (files, options, callback) => {
3737
}
3838
const time = '[' + util.now() + ']';
3939
process.stdout.write(
40-
' - '.green.bold
41-
+ time.grey + ' '
40+
chalk.green.bold(' - ')
41+
+ chalk.grey(time) + ' '
4242
+ subpath.replace(/^\//, '')
43-
+ ' >> '.yellow.bold
43+
+ chalk.yellow.bold(' >> ')
4444
+ data['to']
4545
+ '\n'
4646
);

package-lock.json

Lines changed: 4 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "deploy files with node",
55
"main": "index.js",
66
"dependencies": {
7-
"colors": "1.4.0",
7+
"chalk": "^5.0.0",
88
"prompts": "^2.4.2"
99
},
1010
"devDependencies": {},

0 commit comments

Comments
 (0)