tdd-guard
Version:
Automated Test-Driven Development enforcement for Claude Code
91 lines (90 loc) • 2.71 kB
JSON
{
"name": "tdd-guard",
"version": "1.0.1",
"description": "Automated Test-Driven Development enforcement for Claude Code",
"author": "Nizar Selander",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/nizos/tdd-guard.git"
},
"keywords": [
"tdd",
"test-driven-development",
"claude",
"claude-code",
"hooks",
"testing",
"ai-tools",
"code-quality",
"linting"
],
"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 --project default --project golangci-lint",
"test:unit": "vitest run --project unit --project golangci-lint",
"test:integration": "vitest run --project integration",
"test:reporters": "vitest run --project reporters",
"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/claude-code": "^1.0.109",
"@anthropic-ai/sdk": "^0.61.0",
"@types/uuid": "^10.0.0",
"dotenv": "^17.2.2",
"minimatch": "^10.0.3",
"uuid": "^13.0.0",
"zod": "^4.1.5"
},
"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.3.1",
"@typescript-eslint/eslint-plugin": "^8.43.0",
"@typescript-eslint/parser": "^8.43.0",
"@vitest/coverage-v8": "^3.2.4",
"eslint": "^9.35.0",
"eslint-plugin-sonarjs": "^3.0.5",
"globals": "^16.3.0",
"husky": "^9.1.7",
"lint-staged": "^16.1.6",
"prettier": "^3.6.2",
"tdd-guard-vitest": "*",
"tsx": "^4.20.5",
"typescript": "^5.9.2",
"vitest": "^3.2.4"
}
}