Skip to content

Commit

Permalink
Upgrade to v6
Browse files Browse the repository at this point in the history
  • Loading branch information
novemberborn committed Dec 30, 2023
1 parent 011135c commit 0faa840
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ^20
- run: npm it
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

You don't need to use this package. Check out [AVA](https://avajs.dev/) instead.

And yes, we know you can alias dependencies. Unfortunately npm doesn't install bin stubs for aliases.
And yes, we know you can alias dependencies. Unfortunately it confuses `npx ava`, so a wrapper package with a differently named bin stub is preferrable.
2 changes: 1 addition & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/v5'));
const mainEntrypoint = pathToFileURL(require.resolve('@ava/v6'));
import(new URL('cli.mjs', mainEntrypoint));
2 changes: 1 addition & 1 deletion index.cjs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('@ava/v5');
module.exports = require('@ava/v6');
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export {default} from '@ava/v5';
export {default} from '@ava/v6';
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export {default} from '@ava/v5';
export {default} from '@ava/v6';
2 changes: 1 addition & 1 deletion index.test-d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type test from '@ava/v5';
import type test from '@ava/v6';
import {expectType} from 'tsd';
import pkg from '.';

Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"author": "Mark Wubben (https://novemberborn.net/)",
"license": "MIT",
"scripts": {
"test": "xo && tsd && ./node_modules/@ava/v5/entrypoints/cli.mjs"
"test": "xo && tsd && ./node_modules/@ava/v6/entrypoints/cli.mjs"
},
"bin": {
"test-ava": "./cli.js"
Expand All @@ -26,10 +26,10 @@
"index.d.ts"
],
"dependencies": {
"@ava/v5": "npm:ava@5.3.1"
"@ava/v6": "npm:ava@^6"
},
"devDependencies": {
"tsd": "^0.28.1",
"xo": "^0.54.2"
"tsd": "^0.30.1",
"xo": "^0.56.0"
}
}
2 changes: 1 addition & 1 deletion test.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const test = require('@ava/v5');
const test = require('@ava/v6');

test('exports ava (CJS)', t => {
t.is(test, require('@ava/test'));
Expand Down
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import test from '@ava/v5';
import test from '@ava/v6';

test('exports ava (ESM)', async t => {
const {default: exported} = await import('@ava/test');
Expand Down

0 comments on commit 0faa840

Please sign in to comment.