You've already forked hugo-extended
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:
+2
-3
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user