cyclic-dependency-fixer
Version:
AI-powered tool to detect and fix circular dependencies in JavaScript/TypeScript projects. Features intelligent refactoring with Claude/GPT-4, codebase pattern learning, and context-aware fix recommendations
150 lines (149 loc) • 3.92 kB
JSON
{
"name": "cyclic-dependency-fixer",
"version": "2.0.1",
"description": "AI-powered tool to detect and fix circular dependencies in JavaScript/TypeScript projects. Features intelligent refactoring with Claude/GPT-4, codebase pattern learning, and context-aware fix recommendations",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"bin": {
"cycfix": "dist/cli/index.js"
},
"files": [
"dist",
"README.md",
"LICENSE"
],
"npt": {
"examples": [
{
"command": "cycfix detect",
"description": "Detect circular dependencies in current directory"
},
{
"command": "cycfix detect --dir ./src",
"description": "Detect circular dependencies in src folder"
},
{
"command": "cycfix detect --dir ./src --extensions .ts,.tsx",
"description": "Detect in TypeScript files only"
},
{
"command": "cycfix fix",
"description": "Detect and attempt to fix circular dependencies"
},
{
"command": "cycfix fix --dry-run",
"description": "Preview fixes without modifying files"
},
{
"command": "cycfix fix --dir ./src --extensions .ts,.tsx",
"description": "Fix circular dependencies in TypeScript files"
},
{
"command": "cycfix fix --ai",
"description": "Use AI-powered analysis to fix dependencies"
},
{
"command": "cycfix fix --ai --generate-code",
"description": "Generate AI-powered refactoring code"
}
]
},
"scripts": {
"build": "tsc",
"build:watch": "tsc --watch",
"test": "jest --coverage",
"test:watch": "jest --watch",
"lint": "eslint src --ext .ts",
"lint:fix": "eslint src --ext .ts --fix",
"format": "prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"",
"format:check": "prettier --check \"src/**/*.ts\" \"tests/**/*.ts\"",
"prepublishOnly": "npm run build"
},
"keywords": [
"circular-dependency",
"cyclic-dependency",
"dependency-analysis",
"code-quality",
"refactoring",
"typescript",
"javascript",
"static-analysis",
"ast",
"codemod",
"code-smell",
"technical-debt",
"architecture",
"dependency-graph",
"module-dependency",
"import-analysis",
"webpack",
"webpack-plugin",
"rollup",
"vite",
"bundler",
"build-tools",
"linting",
"code-analysis",
"automated-refactoring",
"dependency-injection",
"monorepo",
"nx",
"lerna",
"turborepo",
"eslint",
"tslint",
"nodejs",
"node",
"cli",
"developer-tools",
"devtools",
"code-maintenance",
"software-architecture",
"clean-code",
"ai",
"ai-powered",
"artificial-intelligence",
"machine-learning",
"claude",
"gpt",
"openai",
"anthropic",
"intelligent-refactoring",
"smart-analysis"
],
"author": "Ashish Yadav <ashish.yd@gmail.com>",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/ashishyd/cyclic-dependency-fixer.git"
},
"bugs": {
"url": "https://github.com/ashishyd/cyclic-dependency-fixer/issues"
},
"homepage": "https://github.com/ashishyd/cyclic-dependency-fixer#readme",
"engines": {
"node": ">=16.0.0"
},
"dependencies": {
"@anthropic-ai/sdk": "^0.32.1",
"chalk": "^4.1.2",
"commander": "^11.1.0",
"dotenv": "^16.4.5",
"openai": "^4.77.0",
"ora": "^5.4.1"
},
"devDependencies": {
"@types/jest": "^29.5.11",
"@types/node": "^20.10.6",
"@typescript-eslint/eslint-plugin": "^6.17.0",
"@typescript-eslint/parser": "^6.17.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.2",
"jest": "^29.7.0",
"prettier": "^3.1.1",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
}
}