From 842805238cd86af3ef9a4fc3833695e8a21e2cf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCrg=C3=BCn=20Day=C4=B1o=C4=9Flu?= Date: Sat, 13 Apr 2024 11:34:35 +0200 Subject: [PATCH] Update for v5 (#80) * update * up --- .github/workflows/ci.yml | 2 +- .github/workflows/package-manager-ci.yml | 2 +- .taprc | 3 +++ package.json | 18 +++++++++--------- 4 files changed, 14 insertions(+), 11 deletions(-) create mode 100644 .taprc diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index babd56d..444baa7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,6 +17,6 @@ on: jobs: test: - uses: fastify/workflows/.github/workflows/plugins-ci.yml@v3 + uses: fastify/workflows/.github/workflows/plugins-ci.yml@v4.1.0 with: license-check: true diff --git a/.github/workflows/package-manager-ci.yml b/.github/workflows/package-manager-ci.yml index 89d450f..113aad3 100644 --- a/.github/workflows/package-manager-ci.yml +++ b/.github/workflows/package-manager-ci.yml @@ -17,4 +17,4 @@ on: jobs: test: - uses: fastify/workflows/.github/workflows/plugins-ci-package-manager.yml@v3 + uses: fastify/workflows/.github/workflows/plugins-ci-package-manager.yml@v4.1.0 diff --git a/.taprc b/.taprc new file mode 100644 index 0000000..343ddd5 --- /dev/null +++ b/.taprc @@ -0,0 +1,3 @@ +disable-coverage: true +files: + - test/**/*.test.js diff --git a/package.json b/package.json index 7aa187d..4a0568c 100644 --- a/package.json +++ b/package.json @@ -17,24 +17,24 @@ "homepage": "https://github.com/fastify/fast-uri", "scripts": { "bench": "node benchmark.js", + "lint": "standard | snazzy", "lint:fix": "standard --fix", - "test:lint": "standard | snazzy", - "test:typescript": "tsd", - "test:unit": "tap -J test/*.test.js", - "test:unit:dev": "tap -J test/*.test.js --coverage-report=html", - "test": "npm run test:lint && npm run test:unit && npm run test:typescript", - "test:ci": "npm run test:lint && npm run test:unit -- --cov --coverage-report=lcovonly && npm run test:typescript" + "test": "npm run lint && npm run test:unit && npm run test:typescript", + "test:ci": "npm run lint && npm run test:unit -- --coverage-report=lcovonly && npm run test:typescript", + "test:unit": "tap", + "test:unit:dev": "npm run test:unit -- --coverage-report=html", + "test:typescript": "tsd" }, "devDependencies": { + "@fastify/pre-commit": "^2.1.0", "benchmark": "^2.1.4", "coveralls": "^3.1.1", "snazzy": "^9.0.0", - "standard": "^17.0.0", - "tap": "^16.0.0", + "standard": "^17.1.0", + "tap": "^18.7.2", "tsd": "^0.31.0", "uri-js": "^4.4.1" }, - "dependencies": {}, "tap": { "check-coverage": false }