Files
DentalManagementMH07/package.json
ff 9885a3d35b fix: decouple Python venv setup from npm install postinstall
The three Python services (PatientDataExtractorService, PaymentOCRService,
SeleniumService) provisioned their venvs via postinstall, chained into
root's own postinstall. A failure in any one of them aborted the whole
npm install, which could leave unrelated Node deps (e.g. Backend's sharp)
uninstalled — silently breaking the app with no indication why.

Renamed each service's postinstall to an explicit "setup" script, added a
root "npm run setup:python" to run all three, and documented it as its
own step in the README instead of an automatic install-time side effect.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-31 10:49:06 -04:00

47 lines
2.0 KiB
JSON
Executable File

{
"name": "dental-manager",
"version": "1.0.0",
"private": true,
"scripts": {
"build": "turbo run build",
"dev": "turbo run dev",
"lint": "turbo run lint",
"check-types": "turbo run check-types",
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"db:generate": "npx prisma generate --config=packages/db/prisma/prisma.config.ts --schema=packages/db/prisma/schema.prisma && npx ts-node packages/db/scripts/patch-prisma-imports.ts && ts-node packages/db/scripts/patch-zod-buffer.ts",
"db:migrate": "npx prisma migrate dev --config=packages/db/prisma/prisma.config.ts --schema=packages/db/prisma/schema.prisma",
"db:seed": "npx ts-node packages/db/prisma/seed.ts",
"db:studio": "npx prisma studio --config=packages/db/prisma/prisma.config.ts",
"setup:env": "shx cp packages/db/prisma/.env.example packages/db/prisma/.env && shx cp apps/Frontend/.env.example apps/Frontend/.env && shx cp apps/Backend/.env.example apps/Backend/.env && shx cp apps/PatientDataExtractorService/.env.example apps/PatientDataExtractorService/.env && shx cp apps/SeleniumService/.env.example apps/SeleniumService/.env && shx cp apps/PaymentOCRService/.env.example apps/PaymentOCRService/.env",
"setup:python": "npm run setup --workspace=apps/PatientDataExtractorService && npm run setup --workspace=apps/PaymentOCRService && npm run setup --workspace=apps/SeleniumService",
"postinstall": "bash scripts/install-rclone.sh"
},
"prisma": {
"seed": "ts-node packages/db/prisma/seed.ts"
},
"devDependencies": {
"@types/react-redux": "^7.1.34",
"prettier": "^3.5.3",
"prettier-plugin-tailwindcss": "^0.6.11",
"turbo": "^2.5.3"
},
"engines": {
"node": ">=18"
},
"packageManager": "npm@11.3.0",
"workspaces": [
"apps/*",
"packages/*"
],
"dependencies": {
"@prisma/client": "^7.0.1",
"@reduxjs/toolkit": "^2.8.2",
"decimal.js": "^10.6.0",
"dotenv": "^16.5.0",
"dotenv-cli": "^8.0.0",
"prisma": "^7.0.1",
"react-redux": "^9.2.0",
"shx": "^0.4.0"
}
}