Skip to content

Commit

Permalink
build(deps): exchange chalk for picocolors
Browse files Browse the repository at this point in the history
  • Loading branch information
n4bb12 committed Apr 22, 2023
1 parent 0a84620 commit df2d452
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"@octokit/oauth-methods": "^2.0.5",
"@octokit/request": "^6.2.3",
"@verdaccio/url": "^11.0.0-6-next.29",
"chalk": "^4.1.2",
"dotenv": "^16.0.3",
"express": "^4.18.2",
"global-agent": "^3.0.0",
Expand All @@ -61,6 +60,7 @@
"octokit": "^2.0.14",
"open": "^8.4.2",
"ow": "^0.28.2",
"picocolors": "^1.0.0",
"query-string": "^7.1.3"
},
"devDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions src/logger.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import chalk from "chalk"
import colors from "picocolors"
import { plugin, pluginKey } from "./constants"

const prefix = chalk.blue(`[${pluginKey}]`)
const prefix = colors.blue(`[${pluginKey}]`)

export const logger = {
log: console.log.bind(console, prefix),
error: (...args: any[]) => console.error(prefix, chalk.red(args.join(" "))),
error: (...args: any[]) => console.error(prefix, colors.red(args.join(" "))),
}

logger.log(`Version: ${plugin.name}@${plugin.version}`)
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3153,7 +3153,7 @@ __metadata:
languageName: node
linkType: hard

"chalk@npm:^4.1.0, chalk@npm:^4.1.2":
"chalk@npm:^4.1.0":
version: 4.1.2
resolution: "chalk@npm:4.1.2"
dependencies:
Expand Down Expand Up @@ -9861,7 +9861,6 @@ __metadata:
"@verdaccio/url": ^11.0.0-6-next.29
browserslist: ^4.21.5
c8: ^7.13.0
chalk: ^4.1.2
core-js: ^3.30.1
dotenv: ^16.0.3
express: ^4.18.2
Expand All @@ -9874,6 +9873,7 @@ __metadata:
open: ^8.4.2
ow: ^0.28.2
parcel: ~2.4.1
picocolors: ^1.0.0
prettier: ^2.8.7
process: ^0.11.10
query-string: ^7.1.3
Expand Down

0 comments on commit df2d452

Please sign in to comment.