UNPKG

tdd-guard

Version:

TDD Guard enforces Test-Driven Development principles using Claude Code hooks

88 lines (87 loc) 2.63 kB
{ "name": "tdd-guard", "version": "0.9.0", "description": "TDD Guard enforces Test-Driven Development principles using Claude Code hooks", "author": "Nizar Selander", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/nizos/tdd-guard.git" }, "keywords": [ "tdd", "test-driven-development", "claude", "vitest", "pytest", "python" ], "workspaces": [ "reporters/vitest", "reporters/jest" ], "main": "dist/index.js", "types": "dist/index.d.ts", "bin": { "tdd-guard": "dist/cli/tdd-guard.js" }, "files": [ "dist", "!dist/*.tsbuildinfo", "README.md", "LICENSE" ], "scripts": { "build:workspaces": "npm run build --workspaces --if-present", "build": "tsc --build tsconfig.build.json && npm run build:workspaces", "test": "vitest run", "test:ui": "vitest --ui", "test:unit": "vitest run --exclude '**/test/integration/**' --exclude '**/reporters/test/**'", "test:integration": "vitest run test/integration", "test:reporters": "vitest run reporters/test", "test:coverage": "vitest run --coverage", "lint": "npm run build:workspaces && eslint . --fix --report-unused-disable-directives --max-warnings 0", "lint:check": "npm run build:workspaces && eslint . --report-unused-disable-directives --max-warnings 0", "format": "prettier --write .", "format:check": "prettier --check .", "typecheck": "npm run build:workspaces && tsc --noEmit", "checks": "npm run typecheck && npm run lint && npm run format && npm run test", "pre-commit": "npm run format:check && npm run lint:check && npm run typecheck && npm run test:unit", "prepare": "husky" }, "dependencies": { "@anthropic-ai/sdk": "^0.57.0", "@types/uuid": "^10.0.0", "dotenv": "^17.2.1", "minimatch": "^10.0.3", "uuid": "^11.1.0", "zod": "^4.0.14" }, "lint-staged": { "*.{js,jsx,ts,tsx}": [ "prettier --write", "eslint --fix" ], "*.{json,md,css,yml,yaml}": [ "prettier --write" ] }, "devDependencies": { "@commitlint/cli": "^19.8.1", "@commitlint/config-conventional": "^19.8.1", "@types/node": "^24.1.0", "@typescript-eslint/eslint-plugin": "^8.38.0", "@typescript-eslint/parser": "^8.38.0", "@vitest/coverage-v8": "^3.2.4", "eslint": "^9.32.0", "eslint-plugin-sonarjs": "^3.0.4", "globals": "^16.3.0", "husky": "^9.1.7", "lint-staged": "^16.1.2", "prettier": "^3.6.2", "tdd-guard-vitest": "*", "tsx": "^4.20.3", "typescript": "^5.8.3", "vitest": "^3.2.4" } }