|
4 | 4 | "description": "Nest TypeScript starter repository", |
5 | 5 | "license": "MIT", |
6 | 6 | "scripts": { |
7 | | - "build": "tsc -p tsconfig.build.json", |
8 | | - "start": "ts-node src/main.ts", |
9 | | - "prestart:prod": "npm run build", |
10 | | - "start:prod": "node dist/main.js", |
11 | | - "test": "jest --config=jest.json", |
12 | | - "test:watch": "jest --watch --config=jest.json", |
13 | | - "test:coverage": "jest --config=jest.json --coverage --coverageDirectory=coverage", |
14 | | - "e2e": "jest --config=e2e/jest-e2e.json --forceExit", |
15 | | - "e2e:watch": "jest --watch --config=e2e/jest-e2e.json" |
| 7 | + "prebuild": "rimraf dist", |
| 8 | + "build": "nest build", |
| 9 | + "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", |
| 10 | + "start": "nest start", |
| 11 | + "start:dev": "nest start --watch", |
| 12 | + "start:debug": "nest start --debug --watch", |
| 13 | + "start:prod": "node dist/main", |
| 14 | + "lint": "tslint -p tsconfig.json -c tslint.json", |
| 15 | + "test": "jest", |
| 16 | + "test:watch": "jest --watch", |
| 17 | + "test:cov": "jest --coverage", |
| 18 | + "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand", |
| 19 | + "test:e2e": "jest --config ./test/jest-e2e.json" |
16 | 20 | }, |
17 | 21 | "dependencies": { |
18 | | - "@nestjs/common": "6.8.2", |
19 | | - "@nestjs/core": "6.8.2", |
20 | | - "@nestjs/platform-express": "6.8.2", |
21 | | - "@nestjs/testing": "6.8.2", |
22 | | - "@nestjs/websockets": "6.8.2", |
| 22 | + "@nestjs/common": "^6.8.0", |
| 23 | + "@nestjs/core": "^6.8.0", |
| 24 | + "@nestjs/platform-express": "^6.8.0", |
| 25 | + "reflect-metadata": "^0.1.13", |
23 | 26 | "class-transformer": "0.2.3", |
24 | 27 | "class-validator": "0.10.1", |
25 | | - "reflect-metadata": "0.1.13", |
26 | | - "rxjs": "6.5.3", |
27 | | - "typescript": "3.6.4" |
| 28 | + "rimraf": "^3.0.0", |
| 29 | + "rxjs": "^6.5.3" |
28 | 30 | }, |
29 | 31 | "devDependencies": { |
30 | | - "@types/jest": "24.0.18", |
31 | | - "@types/node": "10.14.21", |
32 | | - "jest": "24.9.0", |
33 | | - "supertest": "4.0.2", |
34 | | - "ts-jest": "24.1.0", |
35 | | - "ts-node": "8.4.1", |
36 | | - "tslint": "5.20.0" |
| 32 | + "@nestjs/cli": "^6.10.1", |
| 33 | + "@nestjs/schematics": "^6.7.0", |
| 34 | + "@nestjs/testing": "^6.8.0", |
| 35 | + "@types/express": "^4.17.1", |
| 36 | + "@types/node": "^12.7.8", |
| 37 | + "@types/supertest": "^2.0.8", |
| 38 | + "jest": "^24.9.0", |
| 39 | + "prettier": "^1.18.2", |
| 40 | + "supertest": "^4.0.2", |
| 41 | + "ts-jest": "^24.1.0", |
| 42 | + "ts-loader": "^6.2.0", |
| 43 | + "ts-node": "^8.4.1", |
| 44 | + "tsconfig-paths": "^3.9.0", |
| 45 | + "tslint": "^5.20.0", |
| 46 | + "typescript": "^3.6.3" |
| 47 | + }, |
| 48 | + "jest": { |
| 49 | + "moduleFileExtensions": [ |
| 50 | + "js", |
| 51 | + "json", |
| 52 | + "ts" |
| 53 | + ], |
| 54 | + "rootDir": "src", |
| 55 | + "testRegex": ".spec.ts$", |
| 56 | + "transform": { |
| 57 | + "^.+\\.(t|j)s$": "ts-jest" |
| 58 | + }, |
| 59 | + "collectCoverageFrom": [ |
| 60 | + "**/*.(t|j)s" |
| 61 | + ], |
| 62 | + "coverageDirectory": "../coverage", |
| 63 | + "testEnvironment": "node" |
37 | 64 | } |
38 | 65 | } |
0 commit comments