Use current Mongoose, NATS, React, and ESLint APIs. Upgrade Vite and other affected dependencies, restrict the compatibility plugin to resolved module IDs, and keep qs unchanged.
101 lines
3.8 KiB
JSON
101 lines
3.8 KiB
JSON
{
|
|
"name": "api",
|
|
"version": "0.0.1",
|
|
"description": "",
|
|
"author": "",
|
|
"private": true,
|
|
"license": "UNLICENSED",
|
|
"scripts": {
|
|
"build": "nest build",
|
|
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
"competition:migrate": "ts-node src/modules/global/database/migrations/run-competition-domain.ts",
|
|
"competition:repair-grand-final": "ts-node src/modules/global/database/migrations/repair-grand-final-bo3.ts",
|
|
"auction:indexes": "ts-node src/modules/global/database/migrations/run-auction-cancellation-index.ts",
|
|
"stats:indexes": "ts-node src/modules/global/database/migrations/run-match-stats-raw-index.ts",
|
|
"seed:dev": "ts-node src/seed.ts",
|
|
"seed:dakao-participant": "ts-node src/seed-dakao-participant.ts",
|
|
"start:dev": "NODE_ENV=dev NEW_RELIC_HOME=. node --import newrelic/esm-loader.mjs -r newrelic dist/main.js",
|
|
"start:staging": "NODE_ENV=staging NEW_RELIC_HOME=. node --import newrelic/esm-loader.mjs -r newrelic dist/main.js",
|
|
"start:prod": "NODE_ENV=prod NEW_RELIC_HOME=. node --import newrelic/esm-loader.mjs -r newrelic dist/main.js",
|
|
"pm2:dev": "pm2 start npm --name lolympus-tournament-support --update-env -- run start:dev",
|
|
"pm2:staging": "pm2 start npm --name lolympus-tournament-support --update-env -- run start:staging",
|
|
"pm2:prod": "pm2 start npm --name lolympus-tournament-support --update-env -- run start:prod",
|
|
"perf:report": "ts-node src/scripts/api-performance-report.ts",
|
|
"perf:routes": "ts-node src/scripts/api-performance-report.ts --routes-only",
|
|
"start:debug": "nest start --debug --watch",
|
|
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
|
|
"test": "jest",
|
|
"typecheck": "tsc --noEmit --incremental false",
|
|
"test:redis": "node test/run-redis-tests.mjs",
|
|
"test:mongodb": "node test/run-mongo-tests.mjs",
|
|
"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:e2e": "jest --config ./test/jest-e2e.json"
|
|
},
|
|
"dependencies": {
|
|
"@lolympus/contracts": "workspace:*",
|
|
"@nats-io/jetstream": "^3.4.0",
|
|
"@nats-io/transport-node": "^3.4.0",
|
|
"@nestjs/common": "^11.1.28",
|
|
"@nestjs/config": "^4.0.4",
|
|
"@nestjs/core": "^11.1.28",
|
|
"@nestjs/platform-express": "^11.1.28",
|
|
"@nestjs/platform-socket.io": "^11.1.28",
|
|
"@nestjs/swagger": "^11.4.8",
|
|
"@nestjs/websockets": "^11.1.28",
|
|
"@socket.io/redis-adapter": "^8.3.0",
|
|
"class-transformer": "^0.5.1",
|
|
"class-validator": "^0.15.1",
|
|
"jose": "^6.2.2",
|
|
"mongoose": "9.12.1",
|
|
"newrelic": "^14.3.3",
|
|
"redis": "^5.12.1",
|
|
"reflect-metadata": "^0.2.2",
|
|
"rxjs": "^7.8.1",
|
|
"socket.io": "^4.8.3",
|
|
"temporal-polyfill": "^0.3.2"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^10.0.1",
|
|
"@nestjs/cli": "^11.0.0",
|
|
"@nestjs/schematics": "^11.0.0",
|
|
"@nestjs/testing": "^11.0.1",
|
|
"@types/express": "^5.0.0",
|
|
"@types/jest": "^30.0.0",
|
|
"@types/node": "^26.1.1",
|
|
"@types/supertest": "^7.0.0",
|
|
"eslint": "^10.14.0",
|
|
"eslint-config-prettier": "^10.0.1",
|
|
"eslint-plugin-prettier": "^5.2.2",
|
|
"globals": "^17.0.0",
|
|
"jest": "^30.0.0",
|
|
"prettier": "^3.4.2",
|
|
"source-map-support": "^0.5.21",
|
|
"supertest": "^7.0.0",
|
|
"ts-jest": "^29.2.5",
|
|
"ts-loader": "^9.5.2",
|
|
"ts-node": "^10.9.2",
|
|
"tsconfig-paths": "^4.2.0",
|
|
"typescript": "^5.7.3",
|
|
"typescript-eslint": "^8.20.0"
|
|
},
|
|
"jest": {
|
|
"moduleFileExtensions": [
|
|
"js",
|
|
"json",
|
|
"ts"
|
|
],
|
|
"rootDir": "src",
|
|
"testRegex": ".*\\.spec\\.ts$",
|
|
"transform": {
|
|
"^.+\\.(t|j)s$": "ts-jest"
|
|
},
|
|
"collectCoverageFrom": [
|
|
"**/*.(t|j)s"
|
|
],
|
|
"coverageDirectory": "../coverage",
|
|
"testEnvironment": "node"
|
|
}
|
|
}
|