the-tip-top-backend/package.json
soufiane 9330c68e5c fix: improve CI/CD quality checks and fix test/lint configuration
Backend fixes:
- Add eslint.config.js with proper ES6 module configuration
- Add jest.config.js to support ES modules
- Update package.json with @eslint/js dependency
- Configure npm test script with NODE_OPTIONS for ES modules
- Update Jenkinsfile to block deployments on failed lint/tests

This ensures:
1. ESLint works correctly with ES6 modules
2. Jest can run tests with ES6 imports
3. Deployments are blocked if quality checks fail

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 15:40:04 +01:00

56 lines
1.7 KiB
JSON
Executable File

{
"name": "backend",
"version": "1.0.0",
"description": "The Tip Top backend API",
"main": "index.js",
"type": "module",
"scripts": {
"start": "node index.js",
"dev": "nodemon index.js",
"lint": "eslint .",
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
"test:integration": "NODE_OPTIONS=--experimental-vm-modules jest --config jest.integration.config.js",
"db:schema": "psql -h 51.75.24.29 -U postgres -d thetiptop_dev -p 5433 -f database/schema.sql",
"db:create": "node scripts/create-tables.js",
"db:seed": "node database/seed.js",
"db:check": "node scripts/check-database.js",
"kill": "powershell -ExecutionPolicy Bypass -File ./scripts/kill-server.ps1",
"fresh": "powershell -ExecutionPolicy Bypass -File ./scripts/start-fresh.ps1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"bcrypt": "^6.0.0",
"bcryptjs": "^3.0.3",
"cors": "^2.8.5",
"date-fns": "^4.1.0",
"dotenv": "^17.2.3",
"express": "^5.1.0",
"express-session": "^1.18.2",
"google-auth-library": "^10.5.0",
"helmet": "^8.1.0",
"jsonwebtoken": "^9.0.2",
"morgan": "^1.10.1",
"nodemailer": "^7.0.10",
"passport": "^0.7.0",
"passport-facebook": "^3.0.0",
"passport-google-oauth20": "^2.0.0",
"pg": "^8.16.3",
"prom-client": "^15.1.3",
"uuid": "^13.0.0",
"zod": "^4.1.12"
},
"devDependencies": {
"@eslint/js": "^9.39.0",
"eslint": "^9.39.0",
"jest": "^30.2.0",
"nodemon": "^3.1.10",
"supertest": "^7.1.4"
},
"repository": {
"type": "git",
"url": "https://gitea.wk-archi-o24a-15m-g3.fr/wkadmin/the-tip-top-backend.git"
}
}