diff --git a/package.json b/package.json index 6340d69..5a6ff67 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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": { diff --git a/src/logger.ts b/src/logger.ts index 484c385..19b9188 100644 --- a/src/logger.ts +++ b/src/logger.ts @@ -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}`) diff --git a/yarn.lock b/yarn.lock index af928f3..3460a8d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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: @@ -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 @@ -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