|
5 | 5 | "author": "Douglas Christopher Wilson <[email protected]>",
|
6 | 6 | "license": "MIT",
|
7 | 7 | "repository": "pillarjs/finalhandler",
|
| 8 | + "type": "commonjs", |
| 9 | + "main": "index.js", |
| 10 | + "types": "types/index.d.ts", |
8 | 11 | "dependencies": {
|
9 | 12 | "debug": "^4.4.0",
|
10 | 13 | "encodeurl": "^2.0.0",
|
|
14 | 17 | "statuses": "^2.0.1"
|
15 | 18 | },
|
16 | 19 | "devDependencies": {
|
| 20 | + "@arethetypeswrong/cli": "^0.17.4", |
| 21 | + "@tsconfig/node18": "^18.2.4", |
| 22 | + "@types/node": "^22.13.10", |
17 | 23 | "eslint": "7.32.0",
|
18 | 24 | "eslint-config-standard": "14.1.1",
|
19 | 25 | "eslint-plugin-import": "2.26.0",
|
20 | 26 | "eslint-plugin-markdown": "2.2.1",
|
21 | 27 | "eslint-plugin-node": "11.1.0",
|
22 | 28 | "eslint-plugin-promise": "5.2.0",
|
23 | 29 | "eslint-plugin-standard": "4.1.0",
|
| 30 | + "expect-type": "^1.2.0", |
24 | 31 | "mocha": "^11.0.1",
|
25 | 32 | "nyc": "^17.1.0",
|
26 |
| - "supertest": "^7.0.0" |
| 33 | + "supertest": "^7.0.0", |
| 34 | + "typescript": "^5.8.2" |
27 | 35 | },
|
28 | 36 | "files": [
|
29 | 37 | "LICENSE",
|
30 | 38 | "HISTORY.md",
|
31 |
| - "index.js" |
| 39 | + "index.js", |
| 40 | + "index.d.ts" |
32 | 41 | ],
|
33 | 42 | "engines": {
|
34 | 43 | "node": ">= 0.8"
|
|
38 | 47 | "test": "mocha --reporter spec --check-leaks test/",
|
39 | 48 | "test-ci": "nyc --reporter=lcovonly --reporter=text npm test",
|
40 | 49 | "test-cov": "nyc --reporter=html --reporter=text npm test",
|
41 |
| - "test-inspect": "mocha --reporter spec --inspect --inspect-brk test/" |
| 50 | + "test-inspect": "mocha --reporter spec --inspect --inspect-brk test/", |
| 51 | + "test-types": "tsc --noEmit && attw --pack" |
42 | 52 | }
|
43 | 53 | }
|
0 commit comments