diff --git a/.travis.yml b/.travis.yml index 728c89e..0ce9364 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: node_js node_js: + - '14' - '12' - '10' - - '8' before_install: - 'sudo chown $USER /usr/local' diff --git a/package.json b/package.json index e204b9c..5b1e7b8 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "optipng": "cli.js" }, "engines": { - "node": ">=8" + "node": ">=10" }, "scripts": { "postinstall": "node lib/install.js", @@ -35,11 +35,11 @@ "logalot": "^2.0.0" }, "devDependencies": { - "ava": "^1.4.1", + "ava": "^3.8.0", "bin-check": "^4.0.1", "compare-size": "^3.0.0", - "execa": "^1.0.0", - "tempy": "^0.3.0", - "xo": "^0.24.0" + "execa": "^4.0.0", + "tempy": "^0.5.0", + "xo": "^0.30.0" } } diff --git a/test/test.js b/test/test.js index c296ca4..99a20bd 100644 --- a/test/test.js +++ b/test/test.js @@ -16,14 +16,14 @@ test('rebuild the optipng binaries', async t => { return; } - const tmp = tempy.directory(); + const temporary = tempy.directory(); await binBuild.file(path.resolve(__dirname, '../vendor/source/optipng.tar.gz'), [ - `./configure --with-system-zlib --prefix="${tmp}" --bindir="${tmp}"`, + `./configure --with-system-zlib --prefix="${temporary}" --bindir="${temporary}"`, 'make install' ]); - t.true(fs.existsSync(path.join(tmp, 'optipng'))); + t.true(fs.existsSync(path.join(temporary, 'optipng'))); }); test('return path to binary and verify that it is working', async t => { @@ -31,9 +31,9 @@ test('return path to binary and verify that it is working', async t => { }); test('minify a PNG', async t => { - const tmp = tempy.directory(); + const temporary = tempy.directory(); const sourcePath = path.join(__dirname, 'fixtures/test.png'); - const destinationPath = path.join(tmp, 'test.png'); + const destinationPath = path.join(temporary, 'test.png'); const arguments_ = [ '-strip', 'all',