Comparing version 0.1.6 to 0.1.7
27
index.js
@@ -8,2 +8,3 @@ 'use strict'; | ||
var path = require('path'); | ||
var pkg = require('./package.json'); | ||
@@ -33,15 +34,25 @@ /** | ||
if (!exists) { | ||
var builder = new BinBuild() | ||
.src('https://github.com/mozilla/mozjpeg/archive/v' + BIN_VERSION + '.tar.gz') | ||
.cfg('autoreconf -fiv && ./configure --prefix="' + bin.dest() + '" --bindir="' + bin.dest() + '" --libdir="' + bin.dest() + '"') | ||
.make('make && make install'); | ||
return builder.build(function (err) { | ||
} | ||
bin.run(['--version'], function (err) { | ||
if (err) { | ||
console.log(logSymbols.error, err); | ||
console.log(logSymbols.warning + ' pre-build test failed, compiling from source...'); | ||
var builder = new BinBuild() | ||
.src('https://github.com/mozilla/mozjpeg/archive/v' + BIN_VERSION + '.tar.gz') | ||
.cfg('autoreconf -fiv && ./configure --prefix="' + bin.dest() + '" --bindir="' + bin.dest() + '" --libdir="' + bin.dest() + '"') | ||
.make('make && make install'); | ||
return builder.build(function (err) { | ||
if (err) { | ||
console.log(logSymbols.error, err); | ||
} | ||
console.log(logSymbols.success + ' mozjpeg built successfully!'); | ||
}); | ||
} | ||
console.log(logSymbols.success + ' mozjpeg built successfully!'); | ||
console.log(logSymbols.success + ' pre-build test passed successfully!'); | ||
}); | ||
} | ||
}); | ||
@@ -48,0 +59,0 @@ |
{ | ||
"name": "mozjpeg", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "mozjpeg wrapper that makes it seamlessly available as a local dependency", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3614
53