erp-construccion-backend/package.json
rckrdmrd b3cd6e2e51 [SYNC] feat: Completar integración erp-core - FASE 2A
- Crear capa de compatibilidad config/ (database.ts, typeorm.ts, index.ts)
- Exportar Tenant y User en core/entities/index.ts
- Crear Company entity en auth/entities/
- Crear Warehouse entity y módulo warehouses/
- Corregir ApiKey imports para usar core/entities
- Unificar tipos TokenPayload y JwtPayload
- Corregir ZodError.errors -> .issues en controllers CRM, inventory, sales, partners
- Agregar exports InventoryService e InventoryController
- Deshabilitar temporalmente módulo finance (requiere correcciones estructurales)
- Agregar .gitignore estándar

Build: PASANDO (módulo finance excluido temporalmente)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 11:43:59 -06:00

77 lines
2.2 KiB
JSON

{
"name": "@construccion-mvp/backend",
"version": "1.0.0",
"description": "Backend API - MVP Sistema Administración de Obra e INFONAVIT",
"main": "dist/server.js",
"scripts": {
"dev": "ts-node-dev --respawn --transpile-only src/server.ts",
"build": "tsc",
"start": "node dist/server.js",
"lint": "eslint src/**/*.ts",
"lint:fix": "eslint src/**/*.ts --fix",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"typeorm": "typeorm-ts-node-commonjs",
"migration:generate": "npm run typeorm -- migration:generate",
"migration:run": "npm run typeorm -- migration:run",
"migration:revert": "npm run typeorm -- migration:revert",
"validate:constants": "ts-node scripts/validate-constants-usage.ts",
"sync:enums": "ts-node scripts/sync-enums.ts",
"precommit": "npm run lint && npm run validate:constants"
},
"keywords": [
"construccion",
"erp",
"infonavit",
"nodejs",
"typescript",
"express",
"typeorm"
],
"author": "Tu Empresa",
"license": "UNLICENSED",
"dependencies": {
"bcryptjs": "^2.4.3",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.0",
"cors": "^2.8.5",
"express": "^4.18.2",
"express-rate-limit": "^7.1.5",
"helmet": "^7.1.0",
"jsonwebtoken": "^9.0.2",
"morgan": "^1.10.0",
"pg": "^8.11.3",
"reflect-metadata": "^0.1.13",
"swagger-ui-express": "^5.0.0",
"typeorm": "^0.3.17",
"winston": "^3.19.0",
"yamljs": "^0.3.0",
"zod": "^4.3.5"
},
"devDependencies": {
"@types/bcryptjs": "^2.4.6",
"@types/cors": "^2.8.17",
"@types/express": "^4.17.21",
"@types/jest": "^29.5.11",
"@types/jsonwebtoken": "^9.0.5",
"@types/morgan": "^1.9.9",
"@types/node": "^20.10.5",
"@types/pg": "^8.16.0",
"@types/swagger-ui-express": "^4.1.6",
"@typescript-eslint/eslint-plugin": "^6.15.0",
"@typescript-eslint/parser": "^6.15.0",
"dotenv": "^17.2.3",
"eslint": "^8.56.0",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.2",
"ts-node-dev": "^2.0.0",
"typescript": "^5.3.3"
},
"engines": {
"node": ">=18.0.0",
"npm": ">=9.0.0"
}
}