Skip to content

Commit

Permalink
Add type checking of TypeScript declarations (#111)
Browse files Browse the repository at this point in the history
`npm test` now runs unit tests and type checking of the TypeScript
declarations.

This should help avoid issues like #110.
  • Loading branch information
simonplend authored May 20, 2022
1 parent c01dbf6 commit b3e5f34
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
},
"homepage": "https://github.com/simonplend/express-json-validator-middleware#readme",
"scripts": {
"test": "tap",
"test": "npm run test:unit && npm run test:types",
"test:unit": "tap",
"test:types": "tsc --noEmit --strict src/index.d.ts",
"lint": "eslint \"src/*.js\" --fix",
"prepush": "npm run lint && npm run test",
"prepublish": "npm run lint && npm run test"
Expand All @@ -37,7 +39,8 @@
"mocha": "^7.1.1",
"prettier": "^1.19.1",
"simple-get": "^4.0.0",
"tap": "^15.1.5"
"tap": "^15.1.5",
"typescript": "^4.6.4"
},
"dependencies": {
"@types/express": "^4.17.3",
Expand Down

0 comments on commit b3e5f34

Please sign in to comment.