UNPKG

commit-guardian

Version:

Interactive CLI tool with browser-based GitHub-style diff viewer for reviewing and approving git changes before commit. Features React-based UI, approval workflow, line comments, and safe commit protection.

98 lines (97 loc) 2.96 kB
{ "name": "commit-guardian", "version": "1.0.11", "description": "Interactive CLI tool with browser-based GitHub-style diff viewer for reviewing and approving git changes before commit. Features React-based UI, approval workflow, line comments, and safe commit protection.", "main": "dist/cli/index.js", "bin": { "commit-guardian": "./dist/cli/index.js" }, "scripts": { "dev": "concurrently \"pnpm run dev:server\" \"pnpm run dev:client\"", "dev:server": "tsx watch src/server/server.ts", "dev:client": "vite", "build": "pnpm run build:types && pnpm run build:server && pnpm run build:client", "build:types": "tsc --noEmit -p tsconfig.server.json && tsc --noEmit -p tsconfig.client.json", "build:server": "tsc -b tsconfig.server.json", "build:client": "vite build", "prepublishOnly": "npm run build", "start": "node dist/cli/index.js", "typecheck": "tsc --noEmit", "lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0", "format": "prettier --write \"src/**/*.{ts,tsx,json}\"" }, "files": [ "dist", "README.md", "package.json" ], "dependencies": { "@octokit/rest": "^22.0.0", "@rollup/rollup-darwin-arm64": "4.45.1", "commander": "^14.0.0", "cors": "^2.8.5", "express": "^5.1.0", "lucide-react": "^0.525.0", "open": "^10.1.2", "prism-react-renderer": "^2.4.1", "prism-themes": "^1.9.0", "prismjs": "^1.30.0", "react": "^19.1.0", "react-dom": "^19.1.0", "simple-git": "^3.28.0" }, "devDependencies": { "@eslint/js": "^9.30.1", "@tailwindcss/forms": "^0.5.10", "@tailwindcss/postcss": "^4.1.11", "@tailwindcss/typography": "^0.5.16", "@types/cors": "^2.8.17", "@types/express": "^5.0.3", "@types/node": "^24.0.8", "@types/prismjs": "^1.26.5", "@types/react": "^19.1.8", "@types/react-dom": "^19.1.6", "@typescript-eslint/eslint-plugin": "^8.35.1", "@typescript-eslint/parser": "^8.35.1", "@vitejs/plugin-react": "^4.7.0", "autoprefixer": "^10.4.21", "concurrently": "^8.2.2", "cross-env": "^7.0.3", "eslint": "^9.30.0", "eslint-config-prettier": "^10.1.5", "eslint-plugin-react": "^7.37.5", "eslint-plugin-react-hooks": "^5.2.0", "postcss": "^8.5.6", "prettier": "^3.6.2", "tailwindcss": "^4.1.11", "tsx": "^4.19.2", "typescript": "^5.8.3", "vite": "^7.0.5" }, "keywords": [ "git", "commit", "review", "diff", "cli", "approval", "github", "browser", "interactive", "guardian", "safety" ], "author": "TeXmeijin", "license": "MIT", "homepage": "https://github.com/TeXmeijin/commit-guardian#readme", "repository": { "type": "git", "url": "git+https://github.com/TeXmeijin/commit-guardian.git" }, "bugs": { "url": "https://github.com/TeXmeijin/commit-guardian/issues" }, "engines": { "node": ">=20.0.0" } }