pngquant-bin
Advanced tools
Comparing version 5.0.2 to 6.0.0
@@ -9,4 +9,4 @@ 'use strict'; | ||
log.success('pngquant pre-build test passed successfully'); | ||
}).catch(err => { | ||
log.warn(err.message); | ||
}).catch(async error => { | ||
log.warn(error.message); | ||
log.warn('pngquant pre-build test failed'); | ||
@@ -17,15 +17,17 @@ log.info('compiling from source'); | ||
binBuild.file(path.resolve(__dirname, '../vendor/source/pngquant.tar.gz'), [ | ||
'rm ./INSTALL', | ||
`./configure --prefix="${bin.dest()}"`, | ||
`make install BINPREFIX="${bin.dest()}"` | ||
]).then(() => { | ||
try { | ||
await binBuild.file(path.resolve(__dirname, '../vendor/source/pngquant.tar.gz'), [ | ||
'rm ./INSTALL', | ||
`./configure --prefix="${bin.dest()}"`, | ||
`make install BINPREFIX="${bin.dest()}"` | ||
]); | ||
log.success('pngquant built successfully'); | ||
}).catch(err => { | ||
err.message = `pngquant failed to build, make sure that ${libpng} is installed`; | ||
log.error(err.stack); | ||
} catch (error) { | ||
error.message = `pngquant failed to build, make sure that ${libpng} is installed`; | ||
log.error(error.stack); | ||
// eslint-disable-next-line unicorn/no-process-exit | ||
process.exit(1); | ||
}); | ||
} | ||
}); |
{ | ||
"name": "pngquant-bin", | ||
"version": "5.0.2", | ||
"version": "6.0.0", | ||
"description": "`pngquant` wrapper that makes it seamlessly available as a local dependency", | ||
"license": "MIT", | ||
"license": "GPL-3.0+", | ||
"repository": "imagemin/pngquant-bin", | ||
@@ -27,3 +27,3 @@ "author": { | ||
"engines": { | ||
"node": ">=6" | ||
"node": ">=10" | ||
}, | ||
@@ -53,12 +53,12 @@ "scripts": { | ||
"bin-wrapper": "^4.0.1", | ||
"execa": "^0.10.0", | ||
"execa": "^4.0.0", | ||
"logalot": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"ava": "*", | ||
"ava": "^3.8.0", | ||
"bin-check": "^4.0.1", | ||
"compare-size": "^3.0.0", | ||
"tempy": "^0.2.1", | ||
"xo": "*" | ||
"tempy": "^0.5.0", | ||
"xo": "^0.30.0" | ||
} | ||
} |
# pngquant-bin [![Build Status](https://travis-ci.org/imagemin/pngquant-bin.svg?branch=master)](https://travis-ci.org/imagemin/pngquant-bin) | ||
> [`pngquant`](https://github.com/pornel/pngquant) is a PNG compressor that significantly reduces file sizes by converting images to a more efficient 8-bit PNG format | ||
> [`pngquant`](https://github.com/kornelski/pngquant) is a PNG compressor that significantly reduces file sizes by converting images to a more efficient 8-bit PNG format | ||
@@ -18,3 +18,3 @@ You probably want [`imagemin-pngquant`](https://github.com/imagemin/imagemin-pngquant) instead. | ||
```js | ||
const execFile = require('child_process').execFile; | ||
const {execFile} = require('child_process'); | ||
const pngquant = require('pngquant-bin'); | ||
@@ -46,6 +46,1 @@ | ||
3. Repeat the above commands, but in a 32-bin docker container started with: docker run -ti -v `pwd`:/source i386/debian:9.3 bash | ||
## License | ||
MIT © [Imagemin](https://github.com/imagemin) |
Sorry, the diff of this file is not supported yet
Copyleft License
License(Experimental) Copyleft license information was found
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found
Found 1 instance in 1 package
182014
46
3
70
45
+ Addedcross-spawn@7.0.3(transitive)
+ Addedexeca@4.1.0(transitive)
+ Addedget-stream@5.2.0(transitive)
+ Addedhuman-signals@1.1.1(transitive)
+ Addedis-stream@2.0.1(transitive)
+ Addedmerge-stream@2.0.0(transitive)
+ Addedmimic-fn@2.1.0(transitive)
+ Addednpm-run-path@4.0.1(transitive)
+ Addedonetime@5.1.2(transitive)
+ Addedpath-key@3.1.1(transitive)
+ Addedshebang-command@2.0.0(transitive)
+ Addedshebang-regex@3.0.0(transitive)
+ Addedstrip-final-newline@2.0.0(transitive)
+ Addedwhich@2.0.2(transitive)
- Removedexeca@0.10.0(transitive)
Updatedexeca@^4.0.0