|
5 | 5 | "main": "dist/main.js",
|
6 | 6 | "type": "module",
|
7 | 7 | "scripts": {
|
8 |
| - "start": "ts-node src/main.ts", |
9 |
| - "start:dev": "nodemon --watch \"src/**/*\" src/main.ts", |
10 |
| - "start:prod": "node dist/main.js", |
| 8 | + "start": "ts-node --experimental-specifier-resolution=node src/main.ts", |
| 9 | + "start:dev": "nodemon --experimental-specifier-resolution=node --watch \"src/**/*\" src/main.ts", |
| 10 | + "start:prod": "node --experimental-specifier-resolution=node dist/main.js", |
11 | 11 | "build": "tsc",
|
12 | 12 | "format": "prettier --check \"src/**/*{.js,.ts}\" --ignore-path .gitignore",
|
13 | 13 | "format:fix": "prettier --write \"src/**/*{.js,.ts}\" --ignore-path .gitignore",
|
14 | 14 | "lint": "eslint --ignore-path .gitignore --cache \"src/**/*{.js,.ts}\"",
|
15 | 15 | "lint:fix": "eslint --ignore-path .gitignore --cache \"src/**/*{.js,.ts}\" --fix",
|
16 | 16 | "typecheck": "tsc --noEmit --project tsconfig.json",
|
17 | 17 | "prepare": "husky install",
|
18 |
| - "prebuild": "rimraf dist" |
| 18 | + "prebuild": "rimraf dist", |
| 19 | + "test": "jest --passWithNoTests" |
19 | 20 | },
|
20 | 21 | "repository": {
|
21 | 22 | "type": "git",
|
|
33 | 34 | "homepage": "https://github.com/f1ctashka/nodeJS-labs#readme",
|
34 | 35 | "private": true,
|
35 | 36 | "devDependencies": {
|
36 |
| - "@types/node": "^18.11.7", |
37 |
| - "@typescript-eslint/eslint-plugin": "^5.41.0", |
38 |
| - "@typescript-eslint/parser": "^5.41.0", |
39 |
| - "eslint": "^8.26.0", |
| 37 | + "@types/jest": "^29.2.4", |
| 38 | + "@types/node": "^18.11.11", |
| 39 | + "@typescript-eslint/eslint-plugin": "^5.45.1", |
| 40 | + "@typescript-eslint/parser": "^5.45.1", |
| 41 | + "eslint": "^8.29.0", |
40 | 42 | "eslint-config-prettier": "^8.5.0",
|
41 | 43 | "eslint-plugin-prettier": "^4.2.1",
|
42 |
| - "eslint-plugin-sonarjs": "^0.16.0", |
43 |
| - "husky": "^8.0.1", |
| 44 | + "eslint-plugin-sonarjs": "^0.17.0", |
| 45 | + "husky": "^8.0.2", |
| 46 | + "jest": "^29.3.1", |
44 | 47 | "nodemon": "^2.0.20",
|
45 |
| - "prettier": "^2.7.1", |
| 48 | + "prettier": "^2.8.1", |
46 | 49 | "rimraf": "^3.0.2",
|
| 50 | + "ts-jest": "^29.0.3", |
47 | 51 | "ts-node": "^10.9.1",
|
48 |
| - "typescript": "^4.8.4" |
| 52 | + "typescript": "^4.9.3" |
49 | 53 | },
|
50 | 54 | "dependencies": {
|
51 |
| - "dotenv": "^16.0.3" |
| 55 | + "dotenv": "^16.0.3", |
| 56 | + "http-status": "^1.5.3", |
| 57 | + "reflect-metadata": "^0.1.13" |
| 58 | + }, |
| 59 | + "jest": { |
| 60 | + "moduleFileExtensions": [ |
| 61 | + "js", |
| 62 | + "json", |
| 63 | + "ts" |
| 64 | + ], |
| 65 | + "rootDir": "src", |
| 66 | + "testRegex": ".*\\.spec\\.ts$", |
| 67 | + "transform": { |
| 68 | + "^.+\\.(t|j)s$": "ts-jest" |
| 69 | + }, |
| 70 | + "collectCoverageFrom": [ |
| 71 | + "**/*.(t|j)s" |
| 72 | + ], |
| 73 | + "coverageDirectory": "../coverage", |
| 74 | + "testEnvironment": "node" |
52 | 75 | }
|
53 | 76 | }
|
0 commit comments