{
  "name": "hims_backend_api",
  "version": "1.0.0",
  "description": "Hospital Information Management System (HIMS) backend API: authentication, onboarding, hospital settings, masters, patients and clinical/financial modules.",
  "author": "Ankit Movaliya",
  "main": "main.js",
  "scripts": {
    "tsc": "tsc",
    "dev": "ts-node-dev ./main.ts",
    "build": "set NODE_ENV=development && tsc && npm run postbuild",
    "test_build": "set NODE_ENV=production && tsc",
    "prodbuild": "npm run build:prod",
    "postbuild": "cpx \"{logs,documentImages,templatePages,docs}/**/*\" dist/ && cpx \"package.json\" dist/",
    "test": "jest --runInBand",
    "dev:memory": "ts-node-dev --respawn --transpile-only ./scripts/memory-server.ts",
    "build:dev": "rimraf dist && tsc && npm run postbuild && node scripts/copy-env.js development",
    "build:prod": "node scripts/copy-env.js production --check && rimraf dist && cross-env NODE_ENV=production tsc && npm run postbuild && node scripts/copy-env.js production",
    "start:dist": "node dist/main.js"
  },
  "license": "ISC",
  "dependencies": {
    "@types/express": "^4.17.21",
    "bcryptjs": "^2.4.3",
    "cors": "^2.8.5",
    "cron": "^4.4.0",
    "cross-fetch": "^4.0.0",
    "dotenv": "^16.6.1",
    "exceljs": "^4.4.0",
    "express": "^4.21.1",
    "express-device": "^0.4.2",
    "handlebars": "^4.7.8",
    "jsonwebtoken": "^9.0.2",
    "log4js": "^6.9.1",
    "md5": "^2.3.0",
    "method-override": "^3.0.0",
    "moment-timezone": "^0.5.45",
    "mongoose": "^8.5.4",
    "mongoose-aggregate-paginate": "^2.0.2",
    "mongoose-paginate": "^5.0.3",
    "multer": "^1.4.5-lts.1",
    "nodemailer": "^6.9.14",
    "request": "^2.88.2",
    "ts-node-dev": "^2.0.0",
    "xlsx": "^0.18.5"
  },
  "devDependencies": {
    "@types/bcryptjs": "^2.4.6",
    "@types/cors": "^2.8.19",
    "@types/jest": "^29.5.14",
    "@types/jsonwebtoken": "^9.0.10",
    "@types/md5": "^2.3.6",
    "@types/method-override": "^3.0.0",
    "@types/multer": "^2.3.0",
    "@types/node": "^22.20.5",
    "@types/nodemailer": "^8.0.2",
    "@types/supertest": "^7.2.1",
    "cpx": "^1.5.0",
    "cross-env": "^10.1.0",
    "jest": "^29.7.0",
    "rimraf": "^6.1.4",
    "supertest": "^7.3.2",
    "ts-jest": "^29.4.15",
    "typescript": "^5.5.4"
  },
  "jest": {
    "preset": "ts-jest",
    "testEnvironment": "node",
    "roots": [
      "<rootDir>/tests"
    ],
    "clearMocks": true
  }
}
