-
Notifications
You must be signed in to change notification settings - Fork 24
/
package.json
94 lines (94 loc) · 3.81 KB
/
package.json
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
{
"name": "@datalens-tech/datalens-us",
"description": "United Storage",
"version": "0.0.0",
"private": true,
"author": "DataLens Team <https://github.com/datalens-tech>",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "[email protected]:datalens-tech/datalens-us.git"
},
"main": "dist/index.js",
"dependencies": {
"@gravity-ui/expresskit": "^2.1.0",
"@gravity-ui/gateway": "^2.6.2",
"@gravity-ui/nodekit": "^1.7.0",
"@gravity-ui/postgreskit": "^2.0.0",
"ajv": "^6.12.4",
"axios": "^1.7.7",
"axios-retry": "^3.1.9",
"crc-32": "1.2.0",
"db-errors": "^0.2.3",
"dotenv": "^8.2.0",
"knex": "^3.1.0",
"lodash": "^4.17.21",
"minimist": "^1.2.5",
"moment": "^2.29.4",
"objection": "^3.1.5",
"pg-error-constants": "^1.0.0",
"power-radix": "^2.5.6",
"utility-types": "^3.10.0",
"uuid": "^3.4.0"
},
"devDependencies": {
"@gravity-ui/eslint-config": "^3.2.0",
"@gravity-ui/prettier-config": "^1.1.0",
"@gravity-ui/tsconfig": "^1.0.0",
"@trendyol/jest-testcontainers": "^2.1.1",
"@types/express": "^4.17.15",
"@types/jest": "^29.5.12",
"@types/lodash": "^4.17.4",
"@types/node": "^18.14.4",
"@types/pg": "^7.14.11",
"@types/supertest": "^2.0.10",
"@types/uuid": "^8.3.0",
"dsn-parser": "^1.0.3",
"eslint": "^8.57.1",
"husky": "^8.0.3",
"jest": "^29.7.0",
"lint-staged": "^13.2.3",
"prettier": "^3.3.3",
"source-map-support": "^0.5.19",
"supertest": "^3.3.0",
"testcontainers": "^8.11.0",
"ts-node": "^10.9.2",
"tsc-watch": "^6.2.1",
"typescript": "^5.6.3"
},
"scripts": {
"build": "npm run clear:dist && tsc",
"dev": "node ./scripts/setup-dev-env.js opensource && npm run clear:dist && APP_DEV_MODE=1 tsc-watch --onSuccess 'node dist/server'",
"test:unit": "jest -c './jest/unit/jest.config.js'",
"build:test:unit": "npm run build && npm run test:unit",
"test:int": "ENV=int-testing node ./scripts/setup-dev-env.js opensource && JEST_TESTCONTAINERS_CONFIG_PATH='./jest/int/testcontainers-config.js' NODE_TLS_REJECT_UNAUTHORIZED=0 jest -c './jest/int/jest.config.js' --testMatch '**/dist/server/tests/int/env/opensource/suites/**/(*.)+(test|spec).[tj]s' --detectOpenHandles",
"build:test:int": "npm run build && npm run test:int",
"test": "npm run build && npm run test:unit && npm run test:int",
"db:migrate": "node dist/server/db/scripts/migrate.js",
"db:migrate-one": "node dist/server/db/scripts/migrate-one.js",
"db:rollback": "node dist/server/db/scripts/rollback.js",
"db:rollback-one": "node dist/server/db/scripts/rollback-one.js",
"console": "node dist/server/console",
"prepare-and-test": "rm -rf dist/server && npm run build && npm test",
"prepare:db": "npm run build && CI_MODE=true SQL_DEBUG=false DEBUG=false node dist/server/db/scripts/clear-and-prepare",
"migration:create": "npx knex migrate:make --migrations-directory ./src/db/migrations -x ts",
"docker:build": "docker build --build-arg app_version=${BUILD_VERSION} . -t ${TARGET_IMAGE}:${BUILD_VERSION} -t ${TARGET_IMAGE}:latest",
"docker:push": "docker image push ${TARGET_IMAGE}:${BUILD_VERSION} && docker image push ${TARGET_IMAGE}:latest",
"lint:prettier": "prettier --check '**/*.{js,ts}'",
"lint:js": "eslint \"**/*.{js,ts}\" --quiet",
"lint": "npm run lint:prettier && npm run lint:js",
"lint:version": "node scripts/linters/package-version-test.js",
"lint-release": "npm run lint:version && npm run lint",
"typecheck": "tsc --noEmit",
"decode": "node ./scripts/helpers.js -h=decode",
"encode": "node ./scripts/helpers.js -h=encode",
"clear:dist": "rm -rf ./dist/server",
"prepare": "husky install"
},
"lint-staged": {
"*.{js,ts}": [
"eslint --fix --quiet",
"prettier --write"
]
}
}