Add `reviq completions bash/zsh` command with dynamic shell completions: - Create bash-complete.ts entry point using stricli's proposeCompletions API - Add completions command with bash and zsh support (fish planned) - Extract app export to separate app.ts for shared imports - Add @stricli/auto-complete dependency and __reviq_bash_complete bin entry Also fix lint/type errors in api-server tests and helpers. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
31 lines
872 B
JSON
31 lines
872 B
JSON
{
|
|
"name": "@reviq/cli",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"bin": {
|
|
"reviq": "./dist/index.js",
|
|
"__reviq_bash_complete": "./dist/bash-complete.js"
|
|
},
|
|
"scripts": {
|
|
"build": "bun build src/bin/reviq.ts --outfile dist/index.js --target bun && bun build src/bin/bash-complete.ts --outfile dist/bash-complete.js --target bun",
|
|
"cli": "bun run src/bin/reviq.ts",
|
|
"typecheck": "tsc --noEmit",
|
|
"lint": "eslint . --cache",
|
|
"clean": "rm -rf dist .eslintcache"
|
|
},
|
|
"dependencies": {
|
|
"@stricli/core": "^1.2.5",
|
|
"@stricli/auto-complete": "^1.0.0",
|
|
"@reviq/db": "workspace:*",
|
|
"@noble/hashes": "^2.0.1"
|
|
},
|
|
"devDependencies": {
|
|
"@macalinao/eslint-config": "catalog:",
|
|
"@macalinao/tsconfig": "catalog:",
|
|
"@types/bun": "catalog:",
|
|
"eslint": "catalog:",
|
|
"typescript": "catalog:"
|
|
}
|
|
}
|