user/package.json

124 lines
4.1 KiB
JSON
Raw Normal View History

2022-12-13 12:39:06 +00:00
{
2023-01-26 09:38:46 +00:00
"name": "@mobicoop/user",
2024-04-03 07:01:38 +00:00
"version": "1.6.0",
2022-12-13 14:27:28 +00:00
"description": "Mobicoop V3 User Service",
2023-01-10 09:29:04 +00:00
"author": "sbriat",
2022-12-13 12:39:06 +00:00
"private": true,
2022-12-13 14:27:28 +00:00
"license": "AGPL",
2022-12-13 12:39:06 +00:00
"scripts": {
"prebuild": "rimraf dist",
"build": "nest build",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "nest start",
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch",
"start:prod": "node dist/main",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
2023-03-30 08:57:22 +00:00
"lint:check": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix-dry-run --ignore-path .gitignore",
"pretty:check": "./node_modules/.bin/prettier --check .",
"pretty": "./node_modules/.bin/prettier --write .",
2023-07-20 15:22:31 +00:00
"test": "npm run test:unit && npm run test:integration",
2023-01-10 10:24:42 +00:00
"test:unit": "jest --testPathPattern 'tests/unit/' --verbose",
2023-01-10 11:18:21 +00:00
"test:unit:ci": "jest --testPathPattern 'tests/unit/' --coverage",
2023-07-20 15:22:31 +00:00
"test:integration": "npm run migrate:test && dotenv -e .env.test -- jest --testPathPattern 'tests/integration/' --verbose --runInBand",
"test:integration:ci": "npm run migrate:test:ci && dotenv -e ci/.env.ci -- jest --testPathPattern 'tests/integration/' --runInBand",
2023-01-11 10:26:58 +00:00
"test:cov": "jest --testPathPattern 'tests/unit/' --coverage",
2023-01-05 15:17:37 +00:00
"test:e2e": "jest --config ./test/jest-e2e.json",
"repl": "docker exec -it v3-user-api npm run start -- --entryFile repl",
"migrate": "docker exec v3-user-api sh -c 'npx prisma migrate deploy'",
"migrate:dev": "docker exec v3-user-api sh -c 'npx prisma migrate dev'",
2023-01-10 10:24:42 +00:00
"migrate:test": "dotenv -e .env.test -- npx prisma migrate deploy",
2023-03-10 09:34:14 +00:00
"migrate:test:ci": "dotenv -e ci/.env.ci -- npx prisma migrate deploy",
"migrate:deploy": "npx prisma migrate deploy"
2022-12-13 12:39:06 +00:00
},
"dependencies": {
2024-01-16 13:38:20 +00:00
"@grpc/grpc-js": "^1.9.13",
2023-10-17 09:41:12 +00:00
"@grpc/proto-loader": "^0.7.10",
"@songkeys/nestjs-redis": "^10.0.0",
2024-01-16 13:38:20 +00:00
"@mobicoop/ddd-library": "^2.4.3",
2023-10-17 09:41:12 +00:00
"@mobicoop/health-module": "^2.3.1",
2024-01-16 13:38:20 +00:00
"@mobicoop/message-broker-module": "^2.1.2",
"@nestjs/cache-manager": "^2.2.0",
"@nestjs/common": "^10.3.0",
2023-10-17 09:41:12 +00:00
"@nestjs/config": "^3.1.1",
2024-01-16 13:38:20 +00:00
"@nestjs/core": "^10.3.0",
2023-10-17 09:41:12 +00:00
"@nestjs/cqrs": "^10.2.6",
2023-11-22 15:21:10 +00:00
"@nestjs/event-emitter": "^2.0.3",
2024-01-16 13:38:20 +00:00
"@nestjs/microservices": "^10.3.0",
"@nestjs/platform-express": "^10.3.0",
"@nestjs/terminus": "^10.2.0",
"@prisma/client": "^5.8.1",
"@types/supertest": "^6.0.2",
"@typescript-eslint/eslint-plugin": "^6.19.0",
"@typescript-eslint/parser": "^6.19.0",
"cache-manager": "^5.3.2",
2023-10-17 09:41:12 +00:00
"cache-manager-ioredis-yet": "^1.2.2",
2023-01-24 15:00:46 +00:00
"class-transformer": "^0.5.1",
2024-01-16 13:38:20 +00:00
"class-validator": "^0.14.1",
2023-10-17 09:41:12 +00:00
"dotenv-cli": "^7.3.0",
"ioredis": "^5.3.2"
2023-01-09 14:08:45 +00:00
},
"devDependencies": {
2024-01-16 13:38:20 +00:00
"@nestjs/cli": "^10.3.0",
"@nestjs/schematics": "^10.1.0",
"@nestjs/testing": "^10.3.0",
"@types/jest": "^29.5.11",
"@types/node": "^20.11.4",
2023-11-22 15:21:10 +00:00
"@types/uuid": "^9.0.7",
2024-01-16 13:38:20 +00:00
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
2023-10-17 09:41:12 +00:00
"jest": "29.7.0",
2024-01-16 13:38:20 +00:00
"prettier": "^3.2.2",
"prisma": "^5.8.1",
2023-10-17 09:41:12 +00:00
"source-map-support": "^0.5.21",
2024-01-16 13:38:20 +00:00
"supertest": "^6.3.4",
2023-10-17 09:41:12 +00:00
"ts-jest": "29.1.1",
2023-11-22 15:21:10 +00:00
"ts-loader": "^9.5.1",
2024-01-16 13:38:20 +00:00
"ts-node": "^10.9.2",
2023-10-17 09:41:12 +00:00
"tsconfig-paths": "4.2.0",
2024-01-16 13:38:20 +00:00
"typescript": "^5.3.3"
2022-12-13 12:39:06 +00:00
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
2023-01-24 15:00:46 +00:00
"modulePathIgnorePatterns": [
".module.ts",
2023-07-20 15:22:31 +00:00
".dto.ts",
2023-07-24 13:06:15 +00:00
".constants.ts",
2023-07-20 15:22:31 +00:00
".di-tokens.ts",
".response.ts",
".port.ts",
"prisma.service.ts",
2023-01-24 15:00:46 +00:00
"main.ts"
],
2022-12-13 12:39:06 +00:00
"rootDir": "src",
"testRegex": ".*\\.spec\\.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": [
"**/*.(t|j)s"
],
2023-04-12 10:08:41 +00:00
"coveragePathIgnorePatterns": [
".module.ts",
2023-07-20 15:22:31 +00:00
".dto.ts",
2023-07-24 13:06:15 +00:00
".constants.ts",
2023-07-20 15:22:31 +00:00
".di-tokens.ts",
".response.ts",
".port.ts",
"prisma.service.ts",
2023-04-12 10:08:41 +00:00
"main.ts"
],
2022-12-13 12:39:06 +00:00
"coverageDirectory": "../coverage",
2023-07-20 15:22:31 +00:00
"moduleNameMapper": {
"^@modules(.*)": "<rootDir>/modules/$1",
"^@src(.*)": "<rootDir>$1"
},
2022-12-13 12:39:06 +00:00
"testEnvironment": "node"
}
}