1
mirror of https://github.com/jakejarvis/hugo-extended.git synced 2026-06-12 08:45:27 -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
+2 -3
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);
});
}