2026-01-19 08:10:16 +00:00
|
|
|
{
|
|
|
|
|
"name": "emerges-tes-backend",
|
|
|
|
|
"version": "1.0.0",
|
|
|
|
|
"description": "Backend API para gestión de contenido de EMERGES TES",
|
|
|
|
|
"type": "module",
|
|
|
|
|
"main": "src/index.js",
|
|
|
|
|
"scripts": {
|
|
|
|
|
"build": "tsc",
|
|
|
|
|
"build:watch": "tsc --watch",
|
|
|
|
|
"dev": "tsx watch src/index.js",
|
|
|
|
|
"start": "tsx src/index.js",
|
|
|
|
|
"sync-content": "node scripts/sync-content-to-db.js",
|
|
|
|
|
"sync-content:dry-run": "node scripts/sync-content-to-db.js --dry-run",
|
|
|
|
|
"sync-content:protocols": "node scripts/sync-content-to-db.js --type=protocols",
|
|
|
|
|
"sync-content:drugs": "node scripts/sync-content-to-db.js --type=drugs",
|
|
|
|
|
"sync-content:guides": "node scripts/sync-content-to-db.js --type=guides",
|
|
|
|
|
"sync-content:force": "node scripts/sync-content-to-db.js --force",
|
|
|
|
|
"verify": "node scripts/verify-setup.js",
|
|
|
|
|
"migrate": "node scripts/migrate-content.js",
|
|
|
|
|
"db:create": "node scripts/db-create.js",
|
|
|
|
|
"db:migrate": "node scripts/db-migrate.js",
|
|
|
|
|
"db:seed": "node scripts/db-seed.js",
|
|
|
|
|
"seed:admin": "node scripts/seed-admin.js",
|
|
|
|
|
"seed:content": "node scripts/seed-content.js",
|
|
|
|
|
"seed:drugs": "node scripts/seed-drugs.js",
|
|
|
|
|
"migrate:all": "node scripts/migrate-all-content.js",
|
|
|
|
|
"migrate:drugs": "node scripts/migrate-drugs-schema.js",
|
2026-02-27 14:37:22 +00:00
|
|
|
"migrate:content-items": "node scripts/migrate-content-items-schema.js",
|
|
|
|
|
"migrate:glossary": "node scripts/migrate-glossary-schema.js",
|
|
|
|
|
"migrate:glossary-data": "node scripts/migrate-glossary-from-frontend.js",
|
|
|
|
|
"test": "vitest run",
|
|
|
|
|
"test:watch": "vitest"
|
2026-01-19 08:10:16 +00:00
|
|
|
},
|
|
|
|
|
"keywords": [
|
|
|
|
|
"emerges",
|
|
|
|
|
"tes",
|
|
|
|
|
"sanitario",
|
|
|
|
|
"api"
|
|
|
|
|
],
|
|
|
|
|
"author": "",
|
|
|
|
|
"license": "UNLICENSED",
|
|
|
|
|
"dependencies": {
|
|
|
|
|
"@types/multer": "^2.0.0",
|
|
|
|
|
"archiver": "^7.0.1",
|
|
|
|
|
"bcrypt": "^5.1.1",
|
|
|
|
|
"cors": "^2.8.5",
|
|
|
|
|
"dotenv": "^16.3.1",
|
|
|
|
|
"express": "^4.18.2",
|
|
|
|
|
"express-rate-limit": "^8.2.1",
|
|
|
|
|
"helmet": "^8.1.0",
|
|
|
|
|
"ioredis": "^5.9.1",
|
|
|
|
|
"jsonwebtoken": "^9.0.2",
|
|
|
|
|
"marked": "^17.0.1",
|
|
|
|
|
"multer": "^2.0.2",
|
|
|
|
|
"pg": "^8.11.3",
|
|
|
|
|
"uuid": "^13.0.0",
|
|
|
|
|
"winston": "^3.19.0",
|
|
|
|
|
"winston-daily-rotate-file": "^5.0.0",
|
|
|
|
|
"zod": "^4.3.5"
|
|
|
|
|
},
|
|
|
|
|
"devDependencies": {
|
|
|
|
|
"@types/archiver": "^7.0.0",
|
|
|
|
|
"@types/bcrypt": "^5.0.2",
|
|
|
|
|
"@types/cors": "^2.8.19",
|
|
|
|
|
"@types/express": "^4.17.21",
|
|
|
|
|
"@types/ioredis": "^4.28.10",
|
|
|
|
|
"@types/jsonwebtoken": "^9.0.5",
|
|
|
|
|
"@types/node": "^20.10.0",
|
|
|
|
|
"@types/pg": "^8.10.9",
|
|
|
|
|
"@types/uuid": "^10.0.0",
|
|
|
|
|
"@types/winston": "^2.4.4",
|
2026-02-27 14:37:22 +00:00
|
|
|
"supertest": "^7.2.2",
|
2026-01-19 08:10:16 +00:00
|
|
|
"tsx": "^4.21.0",
|
2026-02-27 14:37:22 +00:00
|
|
|
"typescript": "^5.9.3",
|
|
|
|
|
"vitest": "^4.0.0"
|
2026-01-19 08:10:16 +00:00
|
|
|
}
|
|
|
|
|
}
|