You've already forked hugo-extended
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:
@ -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
11
package-lock.json
generated
@ -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",
|
||||
|
@ -31,7 +31,6 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@xhmikosr/bin-wrapper": "^5.0.1",
|
||||
"picocolors": "^1.0.0",
|
||||
"pkg-conf": "^4.0.0",
|
||||
"rimraf": "^4.4.0"
|
||||
},
|
||||
|
Reference in New Issue
Block a user