Skip to content

Commit

Permalink
Drop Node.js 12 support
Browse files Browse the repository at this point in the history
  • Loading branch information
1000ch committed May 12, 2022
1 parent 7ac176d commit aeb4b89
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ jobs:
strategy:
matrix:
node-version:
- 18
- 16
- 14
- 12
os:
- ubuntu-latest
- macos-latest
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"jpegtran": "cli.js"
},
"engines": {
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
"node": "^14.13.1 || >=16.0.0"
},
"scripts": {
"postinstall": "node lib/install.js",
Expand Down Expand Up @@ -55,11 +55,11 @@
"bin-wrapper": "^4.0.0"
},
"devDependencies": {
"ava": "^3.15.0",
"ava": "^4.2.0",
"bin-check": "^4.0.1",
"compare-size": "^3.0.0",
"execa": "^5.1.1",
"tempy": "^2.0.0",
"xo": "^0.45.0"
"execa": "^6.1.0",
"tempy": "^3.0.0",
"xo": "^0.48.0"
}
}
8 changes: 4 additions & 4 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import path from 'node:path';
import process from 'node:process';
import {fileURLToPath} from 'node:url';
import test from 'ava';
import execa from 'execa';
import tempy from 'tempy';
import {execa} from 'execa';
import {temporaryDirectory} from 'tempy';
import binCheck from 'bin-check';
import binBuild from 'bin-build';
import compareSize from 'compare-size';
Expand All @@ -17,7 +17,7 @@ test('rebuild the jpegtran binaries', async t => {
return;
}

const temporary = tempy.directory();
const temporary = temporaryDirectory();
const cfg = [
'./configure --disable-shared',
`--prefix="${temporary}" --bindir="${temporary}"`,
Expand All @@ -37,7 +37,7 @@ test('return path to binary and verify that it is working', async t => {
});

test('minify a JPG', async t => {
const temporary = tempy.directory();
const temporary = temporaryDirectory();
const src = fileURLToPath(new URL('fixtures/test.jpg', import.meta.url));
const dest = path.join(temporary, 'test.jpg');
const args = [
Expand Down

0 comments on commit aeb4b89

Please sign in to comment.