Skip to content

Commit 71abc48

Browse files
Uzlopakclimba03003Eomm
authored
ensure that generated validators are up to date (fastify#4508)
* ensure that generated validators are up to date * Update package.json Co-authored-by: KaKa <climba03003@gmail.com> * test: ci failing * run integrity check on prepublishOnly --------- Co-authored-by: KaKa <climba03003@gmail.com> Co-authored-by: Manuel Spigolon <behemoth89@gmail.com>
1 parent b69ae0f commit 71abc48

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"scripts": {
99
"bench": "branchcmp -r 2 -g -s \"npm run benchmark\"",
1010
"benchmark": "npx concurrently -k -s first \"node ./examples/benchmark/simple.js\" \"npx autocannon -c 100 -d 30 -p 10 localhost:3000/\"",
11+
"build:validation": "node build/build-error-serializer.js && node build/build-validation.js",
1112
"coverage": "npm run unit -- --cov --coverage-report=html",
1213
"coverage:ci": "npm run unit -- --cov --coverage-report=html --no-browser --no-check-coverage -R terse",
1314
"coverage:ci-check-coverage": "nyc check-coverage --branches 100 --functions 100 --lines 100 --statements 100",
@@ -17,10 +18,11 @@
1718
"lint:markdown": "markdownlint-cli2",
1819
"lint:standard": "standard | snazzy",
1920
"lint:typescript": "eslint -c types/.eslintrc.json types/**/*.d.ts test/types/**/*.test-d.ts",
20-
"prepublishOnly": "PREPUBLISH=true tap --no-check-coverage test/build/**.test.js",
21+
"prepublishOnly": "PREPUBLISH=true tap --no-check-coverage test/build/**.test.js && npm run test:validator:integrity",
2122
"test": "npm run lint && npm run unit && npm run test:typescript",
2223
"test:ci": "npm run unit -- -R terse --cov --coverage-report=lcovonly && npm run test:typescript",
2324
"test:report": "npm run lint && npm run unit:report && npm run test:typescript",
25+
"test:validator:integrity": "npm run build:validation && git diff --quiet --ignore-all-space --ignore-blank-lines --ignore-cr-at-eol lib/error-serializer.js && git diff --quiet --ignore-all-space --ignore-blank-lines --ignore-cr-at-eol lib/configValidator.js",
2426
"test:typescript": "tsc test/types/import.ts && tsd",
2527
"test:watch": "npm run unit -- -w --no-coverage-report -R terse",
2628
"unit": "tap",

0 commit comments

Comments
 (0)