veritas-kanban/server/package.json
Brad Groux 44b63455ea fix(docker): standardize path resolution across all services (#102)
Created shared paths.ts utility as single source of truth for all path
resolution. Refactored 7 services to use it:

- server/src/utils/paths.ts: New shared utility with JSDoc docs
- task-service: Uses getTasksActiveDir()/getTasksArchiveDir()
- activity-service: Uses getDataDir()
- chat-service: Uses getChatsDir()
- audit-service: Uses getAuditDir()
- metrics/helpers: Uses getProjectRoot()/getTelemetryDir()
- backlog-repository: Uses getTasksBacklogDir()

Resolution priority: DATA_DIR/VERITAS_DATA_DIR env var > auto-discovery
of monorepo root (walks up looking for pnpm-workspace.yaml) > cwd fallback.
Filesystem root guard prevents silent '/' resolution (the original EACCES bug).

Backwards compatible: existing DATA_DIR configurations unchanged.
Cross-model reviewed: 10/10/10/10 (GPT-5.1 authored, Claude Sonnet 4.5 reviewed).

Closes #102

[author: gpt-5.1]
[reviewed-by: claude-sonnet-4.5]
Version: 2.1.3
2026-02-07 22:02:05 -06:00

76 lines
2.1 KiB
JSON

{
"name": "@veritas-kanban/server",
"version": "2.1.3",
"private": true,
"type": "module",
"main": "./dist/index.js",
"scripts": {
"dev": "tsx watch src/index.ts",
"build": "tsc",
"start": "node dist/index.js",
"typecheck": "tsc --noEmit",
"lint": "eslint src --ext .ts",
"test": "vitest run",
"test:watch": "vitest",
"clean": "rm -rf dist",
"reset-password": "tsx src/scripts/reset-password.ts"
},
"dependencies": {
"@veritas-kanban/shared": "workspace:*",
"bcrypt": "^6.0.0",
"compression": "^1.8.1",
"content-disposition": "^1.0.1",
"cookie-parser": "^1.4.7",
"cors": "^2.8.5",
"dotenv": "^17.2.3",
"exceljs": "^4.4.0",
"express": "^4.21.0",
"express-rate-limit": "^8.2.1",
"file-type": "^21.3.0",
"gray-matter": "^4.0.3",
"helmet": "^8.1.0",
"jsonwebtoken": "^9.0.3",
"mammoth": "^1.11.0",
"mime-types": "^3.0.2",
"multer": "^2.0.2",
"nanoid": "^5.0.9",
"pino": "^10.3.0",
"pino-pretty": "^13.1.3",
"sanitize-html": "^2.17.0",
"simple-git": "^3.27.0",
"swagger-jsdoc": "^6.2.8",
"swagger-ui-express": "^5.0.1",
"unpdf": "^1.4.0",
"ws": "^8.18.0",
"zod": "^3.24.0"
},
"devDependencies": {
"@types/bcrypt": "^6.0.0",
"@types/compression": "^1.8.1",
"@types/content-disposition": "^0.5.9",
"@types/cookie-parser": "^1.4.10",
"@types/cors": "^2.8.17",
"@types/exceljs": "^1.3.2",
"@types/express": "^5.0.0",
"@types/express-serve-static-core": "^5.1.1",
"@types/jsonwebtoken": "^9.0.10",
"@types/mime-types": "^3.0.1",
"@types/multer": "^2.0.0",
"@types/sanitize-html": "^2.16.0",
"@types/supertest": "^6.0.3",
"@types/swagger-jsdoc": "^6.0.4",
"@types/swagger-ui-express": "^4.1.8",
"@types/ws": "^8.5.13",
"@vitest/coverage-v8": "^4.0.18",
"eslint": "^9.17.0",
"supertest": "^7.2.2",
"tsx": "^4.19.0",
"typescript": "^5.7.0"
},
"license": "MIT",
"author": "Brad Groux <brad@digitalmeld.io>",
"repository": {
"type": "git",
"url": "https://github.com/BradGroux/veritas-kanban.git"
}
}