generated from MapColonies/ts-server-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
124 lines (124 loc) · 4.91 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
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
{
"name": "polygon-parts-manager",
"version": "1.4.0",
"description": "service responsible for polygon parts managment",
"main": "./src/index.ts",
"scripts": {
"typeorm": "node --require ts-node/register ./node_modules/typeorm/cli.js",
"migration:create": "npm run typeorm -- migration:create",
"migration:generate": "npm run typeorm -- -d dataSource.ts migration:generate -p",
"migration:run": "npm run typeorm migration:run -- -d dataSource.ts",
"migration:revert": "npm run typeorm migration:revert -- -d dataSource.ts",
"migration:init": "npm run typeorm init",
"test": "npm run test:unit && npm run test:integration",
"test:unit": "jest --config=./tests/configurations/unit/jest.config.js",
"test:integration": "jest --config=./tests/configurations/integration/jest.config.js --runInBand",
"format": "prettier --check .",
"format:fix": "prettier --write .",
"prelint": "npm run format",
"lint": "eslint .",
"lint:openapi": "openapi lint ./openapi3.yaml --skip-rule=no-unresolved-refs",
"lint:bundledopenapi": "openapi lint ./bundledApi.yaml",
"prelint:fix": "npm run format:fix",
"lint:fix": "eslint --fix .",
"release": "standard-version",
"prebuild": "npm run clean",
"build": "tsc --project tsconfig.build.json && npm run bundleOpenApi && npm run assets:copy",
"start": "npm run build && cd dist && node ./index.js",
"start:dev": "npm run build && cd dist && node --enable-source-maps ./index.js",
"assets:copy": "copyfiles -f ./config/* ./dist/config && copyfiles -f ./bundledApi.yaml ./dist/ && copyfiles ./package.json dist",
"copySchema": "copyfiles -u 5 \"./node_modules/@map-colonies/mc-model-types/Schema/yaml/**/*\" ./Schema",
"clean": "rimraf dist",
"install": "npx husky install",
"postinstall": "command -v ./node_modules/.bin/copyfiles > /dev/null && command -v ./node_modules/.bin/openapi > /dev/null && command -v ./node_modules/.bin/rimraf > /dev/null && npm run bundleOpenApi || echo 'skipping postinstall since openapi is not available'",
"prebundleOpenApi": "npm run copySchema",
"bundleOpenApi": "openapi bundle --output ./bundledApi.yaml --ext yaml ./openapi3.yaml",
"postbundleOpenApi": "rimraf Schema"
},
"directories": {
"test": "tests"
},
"author": "MapColonies",
"license": "ISC",
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"dependencies": {
"@godaddy/terminus": "^4.12.1",
"@map-colonies/error-express-handler": "^2.1.0",
"@map-colonies/error-types": "^1.1.5",
"@map-colonies/express-access-log-middleware": "^2.0.1",
"@map-colonies/js-logger": "^1.1.0",
"@map-colonies/mc-model-types": "^17.13.4",
"@map-colonies/openapi-express-viewer": "^3.0.0",
"@map-colonies/read-pkg": "0.0.1",
"@map-colonies/telemetry": "^6.0.0",
"@opentelemetry/api": "^1.7.0",
"@opentelemetry/api-metrics": "0.23.0",
"@opentelemetry/instrumentation-express": "0.32.1",
"@opentelemetry/instrumentation-http": "0.35.1",
"change-case-all": "^2.1.0",
"compression": "^1.7.4",
"config": "^3.3.9",
"express": "^4.18.2",
"express-openapi-validator": "^5.0.4",
"http-status-codes": "^2.2.0",
"pg": "^8.12.0",
"reflect-metadata": "^0.1.13",
"tsyringe": "^4.8.0",
"typeorm": "^0.3.20",
"zod": "^3.23.8"
},
"devDependencies": {
"@commitlint/cli": "^17.6.6",
"@commitlint/config-conventional": "^17.6.6",
"@faker-js/faker": "^9.0.3",
"@map-colonies/eslint-config": "^3.1.3",
"@map-colonies/prettier-config": "0.0.1",
"@map-colonies/standard-version-update-helm-version": "^2.0.1",
"@map-colonies/standard-version-update-openapi3-version": "0.0.2",
"@redocly/openapi-cli": "^1.0.0-beta.94",
"@turf/random": "^7.1.0",
"@types/compression": "^1.7.2",
"@types/config": "^3.3.0",
"@types/express": "^4.17.17",
"@types/geojson": "^7946.0.14",
"@types/jest": "^29.5.2",
"@types/multer": "^1.4.7",
"@types/supertest": "^2.0.12",
"@types/swagger-ui-express": "^4.1.3",
"commitlint": "^17.6.6",
"copyfiles": "^2.4.1",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.43.0",
"husky": "^8.0.3",
"jest": "^29.7.0",
"jest-create-mock-instance": "^2.0.0",
"jest-extended": "^4.0.2",
"jest-geojson": "^1.6.0",
"jest-html-reporters": "^3.1.4",
"jest-openapi": "^0.14.2",
"martinez-polygon-clipping": "^0.7.4",
"polygon-clipping": "^0.15.7",
"prettier": "^2.8.8",
"pretty-quick": "^3.1.3",
"randexp": "^0.5.3",
"rimraf": "^5.0.1",
"standard-version": "^9.5.0",
"supertest": "^6.3.3",
"testcontainers": "^10.14.0",
"ts-jest": "^29.2.5",
"ts-node": "^10.9.2",
"typeorm-extension": "^3.6.2",
"typescript": "^5.1.3",
"uuid": "^11.0.2"
}
}