diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5bffc56..e37b875 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,7 +38,7 @@ jobs: contents: read strategy: matrix: - node-version: [14, 16, 18] + node-version: [18, 20] os: [macos-latest, ubuntu-latest, windows-latest] exclude: - node-version: 14 diff --git a/.gitignore b/.gitignore index 3ccb578..b42c5cb 100644 --- a/.gitignore +++ b/.gitignore @@ -151,3 +151,4 @@ profile-* # node clinic *clinic* /.idea/ +.tap diff --git a/.husky/.gitignore b/.husky/.gitignore deleted file mode 100644 index 31354ec..0000000 --- a/.husky/.gitignore +++ /dev/null @@ -1 +0,0 @@ -_ diff --git a/.husky/pre-commit b/.husky/pre-commit deleted file mode 100755 index 610c2a5..0000000 --- a/.husky/pre-commit +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - -npm test diff --git a/.taprc b/.taprc new file mode 100644 index 0000000..1ac2094 --- /dev/null +++ b/.taprc @@ -0,0 +1,3 @@ +timeout: 240 +allow-incomplete-coverage: true +reporter: terse diff --git a/.taprc.yaml b/.taprc.yaml deleted file mode 100644 index e9c8c64..0000000 --- a/.taprc.yaml +++ /dev/null @@ -1,11 +0,0 @@ -coverage: true -flow: false -ts: false -jsx: false -timeout: 240 -check-coverage: false - -reporter: terse - -files: - - 'test/**/*.test.js' diff --git a/package.json b/package.json index 5c83983..efa0cbf 100644 --- a/package.json +++ b/package.json @@ -8,9 +8,11 @@ "scripts": { "test": "npm run test:types && standard && npm run test:unit", "test:unit": "tap", - "test:types": "tsc && tsd && ts-node types/tests/test.ts", - "prepare": "husky install" + "test:types": "tsc && tsd" }, + "pre-commit": [ + "test" + ], "repository": { "type": "git", "url": "git+https://github.com/pinojs/sonic-boom.git" @@ -31,15 +33,14 @@ }, "homepage": "https://github.com/pinojs/sonic-boom#readme", "devDependencies": { + "@fastify/pre-commit": "^2.1.0", "@types/node": "^20.1.0", "fastbench": "^1.0.1", - "husky": "^9.0.6", "proxyquire": "^2.1.3", "standard": "^17.0.0", - "tap": "^16.2.0", + "tap": "^18.2.0", "tsd": "^0.31.0", - "typescript": "^5.0.2", - "ts-node": "^10.8.0" + "typescript": "^5.0.2" }, "dependencies": { "atomic-sleep": "^1.0.0"