Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
127 lines (127 loc) · 4.85 KB
/
Copy pathpackage.json
File metadata and controls
127 lines (127 loc) · 4.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
{
"name": "agro-back",
"version": "1.0.1",
"description": "agro management back end",
"main": "index.js",
"type": "module",
"scripts": {
"docker:mongo": "docker compose -f ./docker/docker-compose.yml up --build -d --wait",
"restoreDB": "./docker/mongo/scripts/restoreDB.sh",
"restoreDump": "./docker/mongo/scripts/restoreDump.sh",
"dev": "tsx watch --clear-screen=false src/index.ts",
"check-circular": "skott --displayMode=raw --showCircularDependencies --tsconfig ./tsconfig.json",
"lint": "eslint \"{src,tests}/**/*.{ts,tsx}\"",
"lint:fix": "eslint \"{src,tests}/**/*.{ts,tsx}\" --fix --fix-type problem,layout,suggestion",
"format": "prettier . --write",
"typecheck": "tsc -p tsconfig.json --noEmit",
"check": "npm run lint && npm run typecheck && npm run build:validate-wiring && prettier . --check",
"full-check": "npm run format && npm run lint && npm run typecheck && npm run build && npm run check-circular && npm test",
"build": "npm run build:clean && npm run build:validate-routes && npm run build:validate-wiring && npm run build:tsc && npm run build:copy-assets",
"build:clean": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"",
"build:validate-routes": "tsx ./scripts/validate-routes.ts",
"build:validate-wiring": "tsx ./scripts/validate-wiring.ts",
"build:copy-assets": "tsx ./scripts/run-copy-assets.ts",
"build:tsc": "tsc -p tsconfig.prod.json --sourceMap false",
"start": "node ./dist/src/index.js",
"start:local": "npm run build && node ./dist/src/index.js",
"docker:local": "npm run build && docker compose up --build",
"test": "npm run test:coverage",
"test:coverage": "npm run test:clean:coverage && npm run test:all",
"test:clean:coverage": "rm -rf coverage",
"test:all": "npm run test:unit && npm run test:features",
"test:unit": "cross-env NODE_ENV=test jest --coverage",
"test:unit:nodb": "cross-env NODE_ENV=test jest --selectProjects no-db --",
"test:unit:db": "cross-env NODE_ENV=test jest --selectProjects db --",
"test:unit:watch": "cross-env NODE_ENV=test jest --watch",
"test:unit:leaks": "cross-env NODE_ENV=test jest --detectOpenHandles --runInBand --coverage=false",
"test:features": "cross-env NODE_ENV=test NODE_OPTIONS='--loader ts-node/esm' cucumber-js",
"debug:features": "cross-env NODE_ENV=test NODE_OPTIONS='--loader ts-node/esm' node --inspect-brk ./node_modules/@cucumber/cucumber/bin/cucumber-js",
"bench:catalog-read": "cross-env NODE_ENV=test tsx ./scripts/bench/catalogReadMapping.ts",
"prepare": "husky"
},
"lint-staged": {
"*.{ts,tsx}": [
"eslint --fix",
"prettier --write"
],
"*.{json,yml,yaml,md}": [
"prettier --write"
]
},
"engines": {
"node": ">=24.22.1",
"npm": ">=10.0.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/vinjatovix/agro-back.git"
},
"author": "vinjadevix",
"license": "MIT",
"bugs": {
"url": "https://github.com/vinjatovix/agro-back/issues"
},
"homepage": "https://github.com/vinjatovix/agro-back#readme",
"devDependencies": {
"@commitlint/cli": "^21.0.0",
"@commitlint/config-conventional": "^21.0.0",
"@cucumber/cucumber": "^13.2.1",
"@eslint/eslintrc": "^3.3.5",
"@eslint/js": "^10.0.1",
"@types/chai": "^5.2.3",
"@types/chance": "^1.1.7",
"@types/cors": "^2.8.19",
"@types/express": "^5.0.6",
"@types/jest": "^30.0.0",
"@types/jsonwebtoken": "^9.0.10",
"@types/migrate-mongo": "^14.0.0",
"@types/node": "^25.9.8",
"@types/supertest": "^7.2.0",
"@types/swagger-ui-express": "^4.1.8",
"@typescript-eslint/eslint-plugin": "^8.58.2",
"@typescript-eslint/parser": "^8.58.2",
"chai": "^6.2.2",
"chance": "^1.1.13",
"cross-env": "^10.1.0",
"eslint": "^10.2.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-import-x": "^4.17.1",
"globals": "^17.5.0",
"husky": "^9.1.7",
"jest": "^30.3.0",
"jest-environment-node": "^30.5.2",
"lint-staged": "^17.6.0",
"prettier": "^3.8.3",
"pure-openapi-assert": "^2.0.0",
"skott": "^0.35.10",
"supertest": "^7.2.2",
"ts-jest": "^29.4.9",
"ts-node": "^10.9.2",
"tsx": "^4.21.0",
"typescript": "^6.0.3"
},
"dependencies": {
"awilix": "^13.0.5",
"awilix-express": "^11.0.1",
"bcryptjs": "^3.0.3",
"cors": "^2.8.6",
"dotenv": "^18.0.4",
"env-var": "^7.5.0",
"express": "^5.2.1",
"express-rate-limit": "^8.3.2",
"glob": "^13.0.6",
"google-auth-library": "^11.1.0",
"helmet": "^8.1.0",
"http-status": "^2.1.0",
"js-yaml": "^5.4.2",
"jsonwebtoken": "^9.0.3",
"migrate-mongo": "^14.0.7",
"mongodb": "~7.5.0",
"qs": "^6.16.1",
"swagger-ui-express": "^5.0.1",
"uuid": "^14.0.2",
"winston": "^3.19.0",
"winston-mongodb": "^7.0.1",
"zod": "^4.6.7"
}
}