Skip to content

Commit

Permalink
remove logalot (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
BigMichi1 committed Oct 20, 2021
1 parent 6668778 commit fae321e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
13 changes: 6 additions & 7 deletions lib/install.js
@@ -1,17 +1,16 @@
'use strict';
const path = require('path');
const binBuild = require('bin-build');
const log = require('logalot');
const bin = require('.');

(async () => {
try {
await bin.run(['--version']);
log.success('optipng pre-build test passed successfully');
console.log('optipng pre-build test passed successfully');
} catch (error) {
log.warn(error.message);
log.warn('optipng pre-build test failed');
log.info('compiling from source');
console.warn(error.message);
console.warn('optipng pre-build test failed');
console.info('compiling from source');

try {
// From https://sourceforge.net/projects/optipng/files/OptiPNG/
Expand All @@ -20,9 +19,9 @@ const bin = require('.');
'make install'
]);

log.success('optipng built successfully');
console.log('optipng built successfully');
} catch (error) {
log.error(error.stack);
console.error(error.stack);

// eslint-disable-next-line unicorn/no-process-exit
process.exit(1);
Expand Down
3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -31,8 +31,7 @@
],
"dependencies": {
"bin-build": "^3.0.0",
"bin-wrapper": "^4.0.0",
"logalot": "^2.0.0"
"bin-wrapper": "^4.0.0"
},
"devDependencies": {
"ava": "^3.15.0",
Expand Down

0 comments on commit fae321e

Please sign in to comment.