2025-08-20 18:02:50 +09:00
|
|
|
{
|
|
|
|
|
"name": "@customer-portal/bff",
|
|
|
|
|
"version": "1.0.0",
|
2025-12-10 16:08:34 +09:00
|
|
|
"type": "module",
|
2025-08-20 18:02:50 +09:00
|
|
|
"description": "Backend for Frontend API",
|
|
|
|
|
"author": "",
|
|
|
|
|
"private": true,
|
|
|
|
|
"license": "UNLICENSED",
|
|
|
|
|
"scripts": {
|
2025-12-10 16:08:34 +09:00
|
|
|
"build": "nest build && tsc-alias -p tsconfig.build.json --resolve-full-paths",
|
2025-08-20 18:02:50 +09:00
|
|
|
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
|
|
|
"start": "nest start",
|
2025-12-10 16:08:34 +09:00
|
|
|
"predev": "nest build && tsc-alias -p tsconfig.build.json --resolve-full-paths",
|
2025-09-26 18:28:47 +09:00
|
|
|
"dev": "nest start --watch --preserveWatchOutput",
|
2025-09-26 15:51:07 +09:00
|
|
|
"start:debug": "nest start --debug --watch",
|
2025-12-10 16:08:34 +09:00
|
|
|
"start:prod": "node dist/main.js",
|
2025-09-26 15:51:07 +09:00
|
|
|
"lint": "eslint .",
|
|
|
|
|
"lint:fix": "eslint . --fix",
|
2025-12-10 16:08:34 +09:00
|
|
|
"test": "NODE_OPTIONS='--experimental-vm-modules' jest",
|
|
|
|
|
"test:watch": "NODE_OPTIONS='--experimental-vm-modules' jest --watch",
|
|
|
|
|
"test:cov": "NODE_OPTIONS='--experimental-vm-modules' jest --coverage",
|
|
|
|
|
"test:debug": "NODE_OPTIONS='--experimental-vm-modules --inspect-brk' node node_modules/.bin/jest --runInBand",
|
|
|
|
|
"test:e2e": "NODE_OPTIONS='--experimental-vm-modules' jest --config ./test/jest-e2e.json",
|
2025-09-26 15:51:07 +09:00
|
|
|
"type-check": "tsc --project tsconfig.json --noEmit",
|
|
|
|
|
"type-check:watch": "tsc --project tsconfig.json --noEmit --watch",
|
2025-09-26 16:30:00 +09:00
|
|
|
"clean": "rm -rf dist tsconfig.build.tsbuildinfo",
|
2025-12-02 18:56:38 +09:00
|
|
|
"db:migrate": "prisma migrate dev --schema=prisma/schema.prisma",
|
|
|
|
|
"db:generate": "prisma generate --schema=prisma/schema.prisma",
|
|
|
|
|
"db:studio": "prisma studio --schema=prisma/schema.prisma",
|
|
|
|
|
"db:reset": "prisma migrate reset --schema=prisma/schema.prisma",
|
2025-12-10 16:08:34 +09:00
|
|
|
"db:seed": "tsx prisma/seed.ts"
|
2025-08-20 18:02:50 +09:00
|
|
|
},
|
|
|
|
|
"dependencies": {
|
2025-09-17 18:43:43 +09:00
|
|
|
"@customer-portal/domain": "workspace:*",
|
2025-12-10 13:38:16 +09:00
|
|
|
"@nestjs/bullmq": "^11.0.4",
|
|
|
|
|
"@nestjs/common": "^11.1.9",
|
2025-08-20 18:02:50 +09:00
|
|
|
"@nestjs/config": "^4.0.2",
|
2025-12-10 13:38:16 +09:00
|
|
|
"@nestjs/core": "^11.1.9",
|
|
|
|
|
"@nestjs/jwt": "^11.0.2",
|
2025-08-20 18:02:50 +09:00
|
|
|
"@nestjs/passport": "^11.0.5",
|
2025-12-10 13:38:16 +09:00
|
|
|
"@nestjs/platform-express": "^11.1.9",
|
2025-12-10 13:59:41 +09:00
|
|
|
"@prisma/adapter-pg": "^7.1.0",
|
|
|
|
|
"@prisma/client": "^7.1.0",
|
2025-09-26 15:51:07 +09:00
|
|
|
"@sendgrid/mail": "^8.1.6",
|
2025-08-20 18:02:50 +09:00
|
|
|
"bcrypt": "^6.0.0",
|
2025-12-10 13:38:16 +09:00
|
|
|
"bullmq": "^5.65.1",
|
2025-08-20 18:02:50 +09:00
|
|
|
"cookie-parser": "^1.4.7",
|
|
|
|
|
"helmet": "^8.1.0",
|
2025-12-10 13:38:16 +09:00
|
|
|
"ioredis": "^5.8.2",
|
|
|
|
|
"jsforce": "^3.10.10",
|
|
|
|
|
"jsonwebtoken": "^9.0.3",
|
|
|
|
|
"nestjs-pino": "^4.5.0",
|
2025-09-24 18:00:49 +09:00
|
|
|
"nestjs-zod": "^5.0.1",
|
2025-12-10 13:38:16 +09:00
|
|
|
"p-queue": "^9.0.1",
|
2025-08-20 18:02:50 +09:00
|
|
|
"passport": "^0.7.0",
|
|
|
|
|
"passport-jwt": "^4.0.1",
|
|
|
|
|
"passport-local": "^1.0.0",
|
2025-12-10 13:59:41 +09:00
|
|
|
"pg": "^8.16.3",
|
2025-12-10 13:38:16 +09:00
|
|
|
"pino-http": "^11.0.0",
|
|
|
|
|
"rate-limiter-flexible": "^9.0.0",
|
2025-08-20 18:02:50 +09:00
|
|
|
"reflect-metadata": "^0.2.2",
|
|
|
|
|
"rxjs": "^7.8.2",
|
2025-12-10 13:38:16 +09:00
|
|
|
"salesforce-pubsub-api-client": "^5.5.1",
|
2025-11-29 16:42:08 +09:00
|
|
|
"ssh2-sftp-client": "^12.0.1",
|
2025-12-10 13:38:16 +09:00
|
|
|
"zod": "^4.1.13"
|
2025-08-20 18:02:50 +09:00
|
|
|
},
|
|
|
|
|
"devDependencies": {
|
2025-12-10 13:38:16 +09:00
|
|
|
"@nestjs/cli": "^11.0.14",
|
|
|
|
|
"@nestjs/schematics": "^11.0.9",
|
|
|
|
|
"@nestjs/testing": "^11.1.9",
|
2025-08-20 18:02:50 +09:00
|
|
|
"@types/bcrypt": "^6.0.0",
|
2025-12-10 13:38:16 +09:00
|
|
|
"@types/cookie-parser": "^1.4.10",
|
|
|
|
|
"@types/express": "^5.0.6",
|
2025-08-20 18:02:50 +09:00
|
|
|
"@types/jest": "^30.0.0",
|
2025-09-01 16:45:12 +09:00
|
|
|
"@types/jsonwebtoken": "^9.0.10",
|
2025-12-10 13:38:16 +09:00
|
|
|
"@types/node": "^24.10.2",
|
2025-08-20 18:02:50 +09:00
|
|
|
"@types/passport-jwt": "^4.0.1",
|
|
|
|
|
"@types/passport-local": "^1.0.38",
|
2025-12-10 13:59:41 +09:00
|
|
|
"@types/pg": "^8.15.6",
|
|
|
|
|
"@types/ssh2-sftp-client": "^9.0.6",
|
2025-08-20 18:02:50 +09:00
|
|
|
"@types/supertest": "^6.0.3",
|
2025-12-10 13:38:16 +09:00
|
|
|
"jest": "^30.2.0",
|
2025-12-10 16:31:18 +09:00
|
|
|
"pino-pretty": "^13.1.3",
|
2025-12-10 13:59:41 +09:00
|
|
|
"prisma": "^7.1.0",
|
2025-08-20 18:02:50 +09:00
|
|
|
"supertest": "^7.1.4",
|
2025-12-10 13:38:16 +09:00
|
|
|
"ts-jest": "^29.4.6",
|
2025-12-10 16:08:34 +09:00
|
|
|
"tsc-alias": "^1.8.16",
|
2025-12-10 13:38:16 +09:00
|
|
|
"tsx": "^4.21.0",
|
2025-12-10 13:59:41 +09:00
|
|
|
"typescript": "^5.9.3"
|
2025-08-20 18:02:50 +09:00
|
|
|
},
|
|
|
|
|
"jest": {
|
2025-12-10 16:08:34 +09:00
|
|
|
"moduleFileExtensions": ["js", "json", "ts"],
|
2025-08-20 18:02:50 +09:00
|
|
|
"rootDir": "src",
|
|
|
|
|
"testRegex": ".*\\.spec\\.ts$",
|
2025-09-19 16:34:10 +09:00
|
|
|
"maxWorkers": "50%",
|
2025-12-10 16:08:34 +09:00
|
|
|
"extensionsToTreatAsEsm": [".ts"],
|
2025-08-20 18:02:50 +09:00
|
|
|
"transform": {
|
2025-12-10 16:08:34 +09:00
|
|
|
"^.+\\.ts$": ["ts-jest", { "useESM": true }]
|
2025-08-20 18:02:50 +09:00
|
|
|
},
|
2025-12-10 16:08:34 +09:00
|
|
|
"collectCoverageFrom": ["**/*.ts", "!**/*.spec.ts", "!**/node_modules/**"],
|
2025-08-20 18:02:50 +09:00
|
|
|
"coverageDirectory": "../coverage",
|
|
|
|
|
"testEnvironment": "node",
|
|
|
|
|
"moduleNameMapper": {
|
2025-12-10 16:08:34 +09:00
|
|
|
"^(\\.{1,2}/.*)\\.js$": "$1",
|
2025-11-17 10:31:33 +09:00
|
|
|
"^@/(.*)$": "<rootDir>/$1",
|
|
|
|
|
"^@bff/(.*)$": "<rootDir>/$1"
|
2025-08-20 18:02:50 +09:00
|
|
|
},
|
|
|
|
|
"passWithNoTests": true
|
|
|
|
|
}
|
2025-09-09 18:19:54 +09:00
|
|
|
}
|