Some checks failed
CI/CD Pipeline - Xpeditis PreProd / Frontend - Docker Build & Push (push) Blocked by required conditions
CI/CD Pipeline - Xpeditis PreProd / Deploy to PreProd Server (push) Blocked by required conditions
CI/CD Pipeline - Xpeditis PreProd / Run Smoke Tests (push) Blocked by required conditions
CI/CD Pipeline - Xpeditis PreProd / Backend - Build & Test (push) Failing after 5m54s
CI/CD Pipeline - Xpeditis PreProd / Backend - Docker Build & Push (push) Has been skipped
CI/CD Pipeline - Xpeditis PreProd / Frontend - Build & Test (push) Has been cancelled
Add tsc-alias to resolve @domain/*, @application/*, and @infrastructure/* path aliases to relative paths in the compiled JavaScript output. This fixes the 95 TypeScript "Cannot find module" errors in CI/CD that occurred because nest build (tsc) doesn't resolve path aliases by default. Changes: - Install tsc-alias as dev dependency - Update build script to run tsc-alias after nest build - Remove temporary fix-imports.js script 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
137 lines
4.4 KiB
JSON
137 lines
4.4 KiB
JSON
{
|
|
"name": "@xpeditis/backend",
|
|
"version": "0.1.0",
|
|
"description": "Xpeditis Backend API - Maritime Freight Booking Platform",
|
|
"private": true,
|
|
"scripts": {
|
|
"build": "nest build && tsc-alias",
|
|
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
"start": "nest start",
|
|
"dev": "nest start --watch",
|
|
"start:debug": "nest start --debug --watch",
|
|
"start:prod": "node dist/main",
|
|
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
|
|
"test": "jest",
|
|
"test:watch": "jest --watch",
|
|
"test:cov": "jest --coverage",
|
|
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
|
|
"test:integration": "jest --config ./test/jest-integration.json",
|
|
"test:integration:watch": "jest --config ./test/jest-integration.json --watch",
|
|
"test:integration:cov": "jest --config ./test/jest-integration.json --coverage",
|
|
"test:e2e": "jest --config ./test/jest-e2e.json",
|
|
"migration:generate": "typeorm-ts-node-commonjs migration:generate -d src/infrastructure/persistence/typeorm/data-source.ts",
|
|
"migration:run": "typeorm-ts-node-commonjs migration:run -d src/infrastructure/persistence/typeorm/data-source.ts",
|
|
"migration:revert": "typeorm-ts-node-commonjs migration:revert -d src/infrastructure/persistence/typeorm/data-source.ts"
|
|
},
|
|
"dependencies": {
|
|
"@aws-sdk/client-s3": "^3.906.0",
|
|
"@aws-sdk/lib-storage": "^3.906.0",
|
|
"@aws-sdk/s3-request-presigner": "^3.906.0",
|
|
"@nestjs/axios": "^4.0.1",
|
|
"@nestjs/common": "^10.2.10",
|
|
"@nestjs/config": "^3.1.1",
|
|
"@nestjs/core": "^10.2.10",
|
|
"@nestjs/jwt": "^10.2.0",
|
|
"@nestjs/passport": "^10.0.3",
|
|
"@nestjs/platform-express": "^10.2.10",
|
|
"@nestjs/platform-socket.io": "^10.4.20",
|
|
"@nestjs/swagger": "^7.1.16",
|
|
"@nestjs/throttler": "^6.4.0",
|
|
"@nestjs/typeorm": "^10.0.1",
|
|
"@nestjs/websockets": "^10.4.20",
|
|
"@sentry/node": "^10.19.0",
|
|
"@sentry/profiling-node": "^10.19.0",
|
|
"@types/mjml": "^4.7.4",
|
|
"@types/nodemailer": "^7.0.2",
|
|
"@types/opossum": "^8.1.9",
|
|
"@types/pdfkit": "^0.17.3",
|
|
"argon2": "^0.44.0",
|
|
"axios": "^1.12.2",
|
|
"class-transformer": "^0.5.1",
|
|
"class-validator": "^0.14.2",
|
|
"compression": "^1.8.1",
|
|
"csv-parse": "^6.1.0",
|
|
"exceljs": "^4.4.0",
|
|
"handlebars": "^4.7.8",
|
|
"helmet": "^7.2.0",
|
|
"ioredis": "^5.8.1",
|
|
"joi": "^17.11.0",
|
|
"mjml": "^4.16.1",
|
|
"nestjs-pino": "^4.4.1",
|
|
"nodemailer": "^7.0.9",
|
|
"opossum": "^8.1.3",
|
|
"passport": "^0.7.0",
|
|
"passport-google-oauth20": "^2.0.0",
|
|
"passport-jwt": "^4.0.1",
|
|
"passport-microsoft": "^1.0.0",
|
|
"pdfkit": "^0.17.2",
|
|
"pg": "^8.11.3",
|
|
"pino": "^8.17.1",
|
|
"pino-http": "^8.6.0",
|
|
"pino-pretty": "^10.3.0",
|
|
"reflect-metadata": "^0.1.14",
|
|
"rxjs": "^7.8.1",
|
|
"socket.io": "^4.8.1",
|
|
"typeorm": "^0.3.17"
|
|
},
|
|
"devDependencies": {
|
|
"@faker-js/faker": "^10.0.0",
|
|
"@nestjs/cli": "^10.2.1",
|
|
"@nestjs/schematics": "^10.0.3",
|
|
"@nestjs/testing": "^10.2.10",
|
|
"@types/bcrypt": "^5.0.2",
|
|
"@types/compression": "^1.8.1",
|
|
"@types/express": "^4.17.21",
|
|
"@types/jest": "^29.5.11",
|
|
"@types/multer": "^2.0.0",
|
|
"@types/node": "^20.10.5",
|
|
"@types/passport-google-oauth20": "^2.0.14",
|
|
"@types/passport-jwt": "^3.0.13",
|
|
"@types/supertest": "^6.0.2",
|
|
"@types/uuid": "^10.0.0",
|
|
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
"@typescript-eslint/parser": "^7.18.0",
|
|
"eslint": "^8.56.0",
|
|
"eslint-config-prettier": "^9.1.0",
|
|
"eslint-plugin-prettier": "^5.0.1",
|
|
"ioredis-mock": "^8.13.0",
|
|
"jest": "^29.7.0",
|
|
"prettier": "^3.1.1",
|
|
"source-map-support": "^0.5.21",
|
|
"supertest": "^6.3.3",
|
|
"ts-jest": "^29.1.1",
|
|
"ts-loader": "^9.5.1",
|
|
"ts-node": "^10.9.2",
|
|
"tsc-alias": "^1.8.16",
|
|
"tsconfig-paths": "^4.2.0",
|
|
"typescript": "^5.3.3"
|
|
},
|
|
"jest": {
|
|
"moduleFileExtensions": [
|
|
"js",
|
|
"json",
|
|
"ts"
|
|
],
|
|
"rootDir": "src",
|
|
"testRegex": ".*\\.spec\\.ts$",
|
|
"transform": {
|
|
"^.+\\.(t|j)s$": [
|
|
"ts-jest",
|
|
{
|
|
"tsconfig": "tsconfig.test.json"
|
|
}
|
|
]
|
|
},
|
|
"collectCoverageFrom": [
|
|
"**/*.(t|j)s"
|
|
],
|
|
"coverageDirectory": "../coverage",
|
|
"testEnvironment": "node",
|
|
"moduleNameMapper": {
|
|
"^@domain/(.*)$": "<rootDir>/domain/$1",
|
|
"^@application/(.*)$": "<rootDir>/application/$1",
|
|
"^@infrastructure/(.*)$": "<rootDir>/infrastructure/$1"
|
|
}
|
|
}
|
|
}
|