mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 04:32:42 +00:00
Installs knip 6.14.1 as a devDependency, ships a curated knip.json covering every Next.js App Router special file plus the worker / script / test entry points, and adds a workflow that runs on every push to main and every PR targeting main. The gate trips on: - unused files (a new orphan module ships zero callers) - unused dependencies (a production dep with no consumer left behind) - unused devDependencies (same, in dev land) - unlisted binaries (a package.json script reaches for a CLI without declaring it) Unused-exports + unused-types stay informational this release because the v1.4.40 W-GHOSTS sweep cleared 1 177 lines of dead code but the historic exported-surface backlog still sits at ~ 487 exports + 52 types. Cleaning that incrementally avoids a single mega-PR risk. Baseline carve-outs in knip.json: ignore — three files W-GHOSTS missed in v1.4.40 (kept as known-zero callers until a follow-up wave can verify they're safe to delete with their dedicated test removed in the same commit): - e2e/setup/test-helpers.ts (9-line barrel; future-multi-user hook) - src/components/charts/compliance-line-chart.tsx (chart module only referenced by a touch-action contract test) - src/lib/logging/index.ts (21-line barrel re-export) ignoreDependencies — runtime / build-time deps loaded outside the import graph: - @hookform/resolvers, react-hook-form: dynamic + framework conv. - @prisma/client: re-exported via src/generated/ (which is ignored) - next-themes: ThemeProvider mounts via dynamic import - @vitejs/plugin-react: vitest.config consumer - shadcn, tailwindcss, tw-animate-css: build pipeline - testcontainers: integration-test bootstrap - @types/* : ambient typings ignoreBinaries — invoked via shell from integration helpers or declared via : - docker, docker-compose, pg_isready (integration setup) - tsx (the openapi:generate + openapi:check scripts run via npx tsx)
120 lines
3.4 KiB
JSON
120 lines
3.4 KiB
JSON
{
|
|
"name": "healthlog",
|
|
"version": "1.4.39.4",
|
|
"description": "Self-hosted personal-health-tracking PWA with Withings integration, AI insights, and doctor-report PDF export.",
|
|
"license": "AGPL-3.0-only",
|
|
"homepage": "https://healthlog.dev",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/MBombeck/HealthLog.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/MBombeck/HealthLog/issues"
|
|
},
|
|
"keywords": [
|
|
"health-tracking",
|
|
"self-hosted",
|
|
"pwa",
|
|
"blood-pressure",
|
|
"withings",
|
|
"next.js",
|
|
"prisma",
|
|
"passkey"
|
|
],
|
|
"private": true,
|
|
"packageManager": "pnpm@10.31.0",
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "next build",
|
|
"analyze": "ANALYZE=1 next build",
|
|
"bundle-report": "node scripts/print-bundle-report.mjs",
|
|
"start": "next start",
|
|
"lint": "eslint",
|
|
"db:generate": "prisma generate",
|
|
"db:push": "prisma db push",
|
|
"db:migrate": "prisma migrate dev",
|
|
"db:migrate:deploy": "prisma migrate deploy",
|
|
"db:studio": "prisma studio",
|
|
"format": "prettier --write .",
|
|
"format:check": "prettier --check .",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"test:integration": "vitest run --config vitest.integration.config.mts",
|
|
"e2e": "playwright test",
|
|
"e2e:ui": "playwright test --ui",
|
|
"openapi:generate": "npx tsx scripts/generate-openapi.ts",
|
|
"openapi:check": "npx tsx scripts/check-openapi.ts"
|
|
},
|
|
"dependencies": {
|
|
"@aws-sdk/client-s3": "^3.1048.0",
|
|
"@hookform/resolvers": "^5.2.2",
|
|
"@node-rs/argon2": "^2.0.2",
|
|
"@parse/node-apn": "^8.1.0",
|
|
"@prisma/adapter-pg": "^7.8.0",
|
|
"@prisma/client": "^7.8.0",
|
|
"@simplewebauthn/browser": "^13.3.0",
|
|
"@simplewebauthn/server": "^13.3.0",
|
|
"@tanstack/react-query": "^5.100.10",
|
|
"@types/sax": "^1.2.7",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"dotenv": "^17.4.2",
|
|
"jspdf": "^4.2.1",
|
|
"jspdf-autotable": "^5.0.7",
|
|
"lucide-react": "^1.14.0",
|
|
"mmdb-lib": "^3.0.2",
|
|
"next": "16.2.6",
|
|
"next-themes": "^0.4.6",
|
|
"p-limit": "^7.3.0",
|
|
"pg-boss": "^12.18.2",
|
|
"prisma": "^7.8.0",
|
|
"radix-ui": "^1.4.3",
|
|
"react": "19.2.5",
|
|
"react-dom": "19.2.5",
|
|
"react-hook-form": "^7.75.0",
|
|
"recharts": "^3.8.1",
|
|
"sax": "^1.6.0",
|
|
"sonner": "^2.0.7",
|
|
"tailwind-merge": "^3.6.0",
|
|
"web-push": "^3.6.7",
|
|
"yaml": "^2.8.4",
|
|
"zod": "^4.4.3",
|
|
"zod-openapi": "^5.4.6",
|
|
"zxcvbn-typescript": "^5.0.1"
|
|
},
|
|
"devDependencies": {
|
|
"@axe-core/playwright": "^4.11.3",
|
|
"@next/bundle-analyzer": "^16.2.6",
|
|
"@playwright/test": "^1.60.0",
|
|
"@tailwindcss/postcss": "^4",
|
|
"@testcontainers/postgresql": "^11.14.0",
|
|
"@types/node": "^25",
|
|
"@types/pg": "^8.20.0",
|
|
"@types/react": "^19",
|
|
"@types/react-dom": "^19",
|
|
"@types/web-push": "^3.6.4",
|
|
"@vitejs/plugin-react": "^5.1.4",
|
|
"@vitest/coverage-v8": "^4.1.5",
|
|
"eslint": "^9",
|
|
"eslint-config-next": "16.2.6",
|
|
"knip": "^6.14.1",
|
|
"pdf-parse": "^2.4.5",
|
|
"pg": "^8.20.0",
|
|
"prettier": "^3.8.3",
|
|
"prettier-plugin-tailwindcss": "^0.8.0",
|
|
"shadcn": "^4.7.0",
|
|
"tailwindcss": "^4",
|
|
"testcontainers": "^11.14.0",
|
|
"tw-animate-css": "^1.4.0",
|
|
"typescript": "^6",
|
|
"vitest": "^4.1.5"
|
|
},
|
|
"pnpm": {
|
|
"onlyBuiltDependencies": [
|
|
"prisma",
|
|
"@prisma/engines"
|
|
]
|
|
}
|
|
}
|