|
23 | 23 | "url": "git://github.com/node-modules/urllib.git" |
24 | 24 | }, |
25 | 25 | "scripts": { |
26 | | - "lint": "oxlint src test", |
| 26 | + "lint": "oxlint src test --type-aware --type-check", |
27 | 27 | "fmt": "oxfmt", |
28 | 28 | "typecheck": "tsc --noEmit && tsgo --noEmit", |
29 | 29 | "fmtcheck": "oxfmt --check .", |
|
40 | 40 | "test-tsc:cjs:es2021": "cd test/fixtures/ts-cjs-es2021 && rm -rf node_modules && npm link ../../.. && npm run build", |
41 | 41 | "test-tsc:esm": "cd test/fixtures/ts-esm && rm -rf node_modules && npm link ../../.. && npm run build", |
42 | 42 | "test": "npm run lint -- --fix && vitest run", |
| 43 | + "bench": "vitest bench", |
43 | 44 | "test-keepalive": "cross-env TEST_KEEPALIVE_COUNT=50 vitest run --test-timeout 180000 keep-alive-header.test.ts", |
44 | 45 | "test-node16": "node examples/httpclient.cjs && node examples/search_github.cjs && node examples/timing.cjs", |
45 | | - "cov": "cross-env NODE_OPTIONS=\"--require ./test/patch-for-node16-18.cjs\" vitest run --coverage", |
| 46 | + "cov": "vitest run --coverage", |
46 | 47 | "ci": "npm run cov && npm run prepublishOnly && npm pack && attw --pack", |
| 48 | + "ci:node16": "cross-env NODE_OPTIONS=\"--require ./test/patch-for-node16-18.cjs\" vitest run && npm run prepublishOnly && npm pack && attw --pack", |
47 | 49 | "clean": "rm -rf dist && tsc -b --clean", |
48 | | - "prepublishOnly": "npm run build" |
| 50 | + "prepublishOnly": "npm run build", |
| 51 | + "prepare": "husky" |
49 | 52 | }, |
50 | 53 | "dependencies": { |
51 | 54 | "form-data": "^4.0.1", |
|
58 | 61 | }, |
59 | 62 | "devDependencies": { |
60 | 63 | "@arethetypeswrong/cli": "^0.18.0", |
| 64 | + "@codspeed/vitest-plugin": "^5.0.1", |
61 | 65 | "@eggjs/oxlint-config": "^1.0.0", |
62 | 66 | "@eggjs/tsconfig": "^2.0.0", |
63 | 67 | "@tsconfig/node18": "^18.2.1", |
|
74 | 78 | "@vitest/coverage-v8": "^3.0.2", |
75 | 79 | "busboy": "^1.6.0", |
76 | 80 | "cross-env": "^10.0.0", |
| 81 | + "husky": "^9.1.7", |
77 | 82 | "iconv-lite": "^0.6.3", |
| 83 | + "lint-staged": "^16.2.7", |
78 | 84 | "oxfmt": "^0.17.0", |
79 | 85 | "oxlint": "^1.11.0", |
| 86 | + "oxlint-tsgolint": "^0.10.0", |
80 | 87 | "proxy": "^1.0.2", |
81 | 88 | "selfsigned": "^3.0.0", |
82 | 89 | "string.prototype.towellformed": "^1.0.2", |
|
117 | 124 | "types": "./dist/commonjs/index.d.ts", |
118 | 125 | "main": "./dist/commonjs/index.js", |
119 | 126 | "module": "./dist/esm/index.js", |
120 | | - "packageManager": "[email protected]" |
| 127 | + "packageManager": "[email protected]", |
| 128 | + "lint-staged": { |
| 129 | + "*": [ |
| 130 | + "npm run lint -- --fix", |
| 131 | + "oxfmt" |
| 132 | + ] |
| 133 | + } |
121 | 134 | } |
0 commit comments