1
mirror of https://github.com/jakejarvis/hugo-extended.git synced 2025-06-30 22:16:39 -04:00

Remove picocolors and use console.log (#132)

This commit is contained in:
XhmikosR
2023-03-24 23:36:56 +02:00
committed by GitHub
parent 9af5be62b9
commit 0f23c2e69a
3 changed files with 2 additions and 15 deletions

View File

@ -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);
});
}

11
package-lock.json generated
View File

@ -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",

View File

@ -31,7 +31,6 @@
},
"dependencies": {
"@xhmikosr/bin-wrapper": "^5.0.1",
"picocolors": "^1.0.0",
"pkg-conf": "^4.0.0",
"rimraf": "^4.4.0"
},