Add v8 coverage via a test:coverage script and vitest config: measure src only, exclude the types-only deps.ts and the bin entrypoint main.ts, and gate on ratcheted thresholds (statements 85, branches 78, functions 90, lines 85) set just under current coverage. CI runs the unit+integration tier through coverage so a real drop fails the build.
37 lines
834 B
JSON
37 lines
834 B
JSON
{
|
|
"name": "gitea-axi",
|
|
"version": "0.1.0",
|
|
"description": "Agent-ergonomic CLI for Gitea issues and pull requests",
|
|
"type": "module",
|
|
"license": "MIT",
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"bin": {
|
|
"gitea-axi": "dist/main.js"
|
|
},
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"build": "tsc -p tsconfig.build.json",
|
|
"prepublishOnly": "npm run build",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"test:coverage": "vitest run --coverage",
|
|
"test:e2e": "vitest run --config vitest.e2e.config.ts"
|
|
},
|
|
"dependencies": {
|
|
"@toon-format/toon": "^2.3.0",
|
|
"axi-sdk-js": "^0.1.8",
|
|
"gitea-js": "^1.23.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20.19.0",
|
|
"@vitest/coverage-v8": "^3.2.7",
|
|
"typescript": "^5.8.0",
|
|
"vitest": "^3.2.0"
|
|
}
|
|
}
|