Files
pi-map/package.json
T
alex ab45859d65 Add AST extraction tests, broader ignore patterns, build dist
- ast-extract.ts: Support tree-sitter-python and tree-sitter-go grammar
  loading (pkg.language fallback)
- discover.ts: Add cache directories to default ignore (.cache, tmp,
  temp, .turbo, .parcel-cache, .eslintcache, .prettiercache)
- tests: Add TypeScript AST extraction tests (exports + imports)
- Verified on real project: media_library_viewer (196 .pi-map.md files)
  with accurate React component extraction
- Build: npm run build produces clean dist/ output

All 16 tests pass.
2026-06-09 19:25:56 +02:00

43 lines
1007 B
JSON

{
"name": "pi-project-map",
"version": "0.1.0",
"description": "Pi skill for hierarchical project analysis — generates and maintains .pi-map.md files",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"bin": {
"project-map": "dist/cli.js"
},
"scripts": {
"build": "tsc",
"dev": "tsc --watch",
"test": "vitest",
"lint": "eslint src/**/*.ts",
"typecheck": "tsc --noEmit"
},
"keywords": [
"pi",
"skill",
"project-analysis",
"code-intelligence",
"agent-context"
],
"author": "",
"license": "MIT",
"devDependencies": {
"@types/node": "^20.0.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"eslint": "^8.0.0",
"tsx": "^4.22.4",
"typescript": "^5.3.0",
"vitest": "^1.0.0"
},
"dependencies": {
"ignore": "^5.3.0",
"tree-sitter": "^0.21.0",
"tree-sitter-go": "^0.25.0",
"tree-sitter-python": "^0.25.0",
"tree-sitter-typescript": "^0.21.0"
}
}