|
8 | 8 | "scripts": {
|
9 | 9 | "bench": "branchcmp -r 2 -g -s \"npm run benchmark\"",
|
10 | 10 | "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", |
11 | 12 | "coverage": "npm run unit -- --cov --coverage-report=html",
|
12 | 13 | "coverage:ci": "npm run unit -- --cov --coverage-report=html --no-browser --no-check-coverage -R terse",
|
13 | 14 | "coverage:ci-check-coverage": "nyc check-coverage --branches 100 --functions 100 --lines 100 --statements 100",
|
|
17 | 18 | "lint:markdown": "markdownlint-cli2",
|
18 | 19 | "lint:standard": "standard | snazzy",
|
19 | 20 | "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", |
21 | 22 | "test": "npm run lint && npm run unit && npm run test:typescript",
|
22 | 23 | "test:ci": "npm run unit -- -R terse --cov --coverage-report=lcovonly && npm run test:typescript",
|
23 | 24 | "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", |
24 | 26 | "test:typescript": "tsc test/types/import.ts && tsd",
|
25 | 27 | "test:watch": "npm run unit -- -w --no-coverage-report -R terse",
|
26 | 28 | "unit": "tap",
|
|
0 commit comments