diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index eea52b4..1c847f1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,8 +4,8 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: - node-version: ^16 + node-version: ^20 - run: npm it diff --git a/cli.js b/cli.js index 25fe79e..b4ae34b 100755 --- a/cli.js +++ b/cli.js @@ -3,5 +3,5 @@ import {createRequire} from 'node:module'; import {pathToFileURL} from 'node:url'; const require = createRequire(import.meta.url); -const mainEntrypoint = pathToFileURL(require.resolve('@ava/v4')); -import(new URL('./cli.mjs', mainEntrypoint)); +const mainEntrypoint = pathToFileURL(require.resolve('@ava/v5')); +import(new URL('cli.mjs', mainEntrypoint)); diff --git a/index.cjs b/index.cjs index 81bad81..93d5e99 100644 --- a/index.cjs +++ b/index.cjs @@ -1 +1 @@ -module.exports = require('@ava/v4'); +module.exports = require('@ava/v5'); diff --git a/index.d.ts b/index.d.ts index ad2dd8c..80b1974 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1 +1 @@ -export {default} from '@ava/v4'; +export {default} from '@ava/v5'; diff --git a/index.js b/index.js index ad2dd8c..80b1974 100644 --- a/index.js +++ b/index.js @@ -1 +1 @@ -export {default} from '@ava/v4'; +export {default} from '@ava/v5'; diff --git a/index.test-d.ts b/index.test-d.ts index 160fa17..bc164d6 100644 --- a/index.test-d.ts +++ b/index.test-d.ts @@ -1,4 +1,4 @@ -import test from '@ava/v4'; +import type test from '@ava/v5'; import {expectType} from 'tsd'; import pkg from '.'; diff --git a/package.json b/package.json index d1acaca..9e2dc5e 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "author": "Mark Wubben (https://novemberborn.net/)", "license": "MIT", "scripts": { - "test": "xo && tsd && ./node_modules/@ava/v4/entrypoints/cli.mjs" + "test": "xo && tsd && ./node_modules/@ava/v5/entrypoints/cli.mjs" }, "bin": { "test-ava": "./cli.js" @@ -26,10 +26,10 @@ "index.d.ts" ], "dependencies": { - "@ava/v4": "npm:ava@4.3.3" + "@ava/v5": "npm:ava@5.3.1" }, "devDependencies": { - "tsd": "^0.19.1", - "xo": "^0.47.0" + "tsd": "^0.28.1", + "xo": "^0.54.2" } } diff --git a/test.cjs b/test.cjs index 3c58139..01f2425 100644 --- a/test.cjs +++ b/test.cjs @@ -1,4 +1,4 @@ -const test = require('@ava/v4'); +const test = require('@ava/v5'); test('exports ava (CJS)', t => { t.is(test, require('@ava/test')); diff --git a/test.js b/test.js index 1747f9f..01722e5 100644 --- a/test.js +++ b/test.js @@ -1,4 +1,4 @@ -import test from '@ava/v4'; +import test from '@ava/v5'; test('exports ava (ESM)', async t => { const {default: exported} = await import('@ava/test');