Skip to content

Commit

Permalink
Remove picocolors and use console.log (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Mar 24, 2023
1 parent 9af5be6 commit 0f23c2e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
5 changes: 2 additions & 3 deletions lib/install.js
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down Expand Up @@ -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);
});
}
Expand Down
11 changes: 0 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
},
"dependencies": {
"@xhmikosr/bin-wrapper": "^5.0.1",
"picocolors": "^1.0.0",
"pkg-conf": "^4.0.0",
"rimraf": "^4.4.0"
},
Expand Down

0 comments on commit 0f23c2e

Please sign in to comment.