Skip to content

Commit e51ba80

Browse files
committed
Require Node.js 18 and update Mocha
Fixes #206 Fixes #204 Fixes #205
1 parent 44b040f commit e51ba80

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
node-version:
13-
- 14
14-
- 12
15-
- 10
13+
- 20
14+
- 18
1615
steps:
17-
- uses: actions/checkout@v2
18-
- uses: actions/setup-node@v1
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-node@v3
1918
with:
2019
node-version: ${{ matrix.node-version }}
2120
- run: npm install

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22
const gulp = require('gulp');
3-
const mocha = require('.');
3+
const mocha = require('./index.js');
44

55
exports.default = () => (
66
gulp.src('test/fixtures/fixture-pass.js', {read: false})

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
"email": "sindresorhus@gmail.com",
1111
"url": "https://sindresorhus.com"
1212
},
13+
"exports": "./index.js",
1314
"engines": {
14-
"node": ">=10"
15+
"node": ">=18"
1516
},
1617
"scripts": {
1718
"test": "xo && ava"
@@ -37,7 +38,7 @@
3738
"dependencies": {
3839
"dargs": "^7.0.0",
3940
"execa": "^5.0.0",
40-
"mocha": "^8.3.0",
41+
"mocha": "^10.2.0",
4142
"plugin-error": "^1.0.1",
4243
"supports-color": "^8.1.1",
4344
"through2": "^4.0.2"
@@ -46,7 +47,7 @@
4647
"ava": "^2.3.0",
4748
"gulp": "^4.0.2",
4849
"p-event": "^4.2.0",
49-
"vinyl": "^2.2.1",
50+
"vinyl": "^3.0.0",
5051
"xo": "^0.37.1"
5152
},
5253
"peerDependencies": {

0 commit comments

Comments
 (0)