From 0f23c2e69a0d58c6e61b343bfba4465de7fa3ede Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Fri, 24 Mar 2023 23:36:56 +0200 Subject: [PATCH] Remove picocolors and use `console.log` (#132) --- lib/install.js | 5 ++--- package-lock.json | 11 ----------- package.json | 1 - 3 files changed, 2 insertions(+), 15 deletions(-) diff --git a/lib/install.js b/lib/install.js index 82db14a..c42aa90 100644 --- a/lib/install.js +++ b/lib/install.js @@ -1,6 +1,5 @@ import path from 'node:path'; import process from 'node:process'; -import picocolors from 'picocolors'; import hugoBin from './index.js'; function getProjectRoot() { @@ -28,10 +27,10 @@ async function main() { const bin = await hugoBin(projectRoot); bin.run(['version']).then(() => { - console.log(picocolors.green('Hugo binary successfully installed!')); + console.log('Hugo binary successfully installed!'); }) .catch(error => { - console.error(picocolors.red('Hugo binary installation failed!')); + console.error('Hugo binary installation failed!'); throw new Error(error); }); } diff --git a/package-lock.json b/package-lock.json index 8eaca20..c7679cd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,7 +17,6 @@ "license": "MIT", "dependencies": { "@xhmikosr/bin-wrapper": "^5.0.1", - "picocolors": "^1.0.0", "pkg-conf": "^4.0.0", "rimraf": "^4.4.0" }, @@ -2040,11 +2039,6 @@ "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==" }, - "node_modules/picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" - }, "node_modules/pify": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/pify/-/pify-5.0.0.tgz", @@ -4199,11 +4193,6 @@ "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==" }, - "picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" - }, "pify": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/pify/-/pify-5.0.0.tgz", diff --git a/package.json b/package.json index d4d3a96..65e64d6 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,6 @@ }, "dependencies": { "@xhmikosr/bin-wrapper": "^5.0.1", - "picocolors": "^1.0.0", "pkg-conf": "^4.0.0", "rimraf": "^4.4.0" },