-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
91 lines (91 loc) · 3.59 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
{
"name": "cvs-svc-defects",
"version": "1.0.0",
"description": "Microservice that stores and serves the defects data",
"main": "src/handler.js",
"engines": {
"node": "^18.*",
"npm": "^10.*"
},
"repository": {
"type": "git",
"url": "https://github.com/dvsa/cvs-svc-defects.git"
},
"scripts": {
"start": "BRANCH=local SLS_DEBUG=* serverless offline start --noPrependStageInUrl",
"tools-setup": "sls dynamodb install",
"test": "npm run test:unit:coverage",
"test:unit": "BRANCH=local SLS_DEBUG=* jest --testMatch=\"**/*.unitTest.ts\"",
"test:unit:coverage": "npm run test:unit -- --coverage --runInBand",
"test:integration": "BRANCH=local jest --testMatch=\"**/*.intTest.ts\" --detectOpenHandles",
"test-i": "AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE=1 npm run test:integration -- --runInBand --globalSetup='./scripts/setUp.ts' --globalTeardown='./scripts/tearDown.ts'",
"build": "node_modules/typescript/bin/tsc --rootDir ./ --outDir .build --sourceMap false && npm run build:copy",
"build:copy": "find src -type f \\( -name \"*.yml\" -or -name \"*.json\" \\) | cpio -pdm .build && find tests -type f \\( -name \"*.yml\" -or -name \"*.json\" \\) | cpio -pdm .build",
"prepush": "npm run test && npm run build && npm run test-i",
"security-checks": "git secrets --scan",
"lint": "tslint src/**/*.ts tests/**/*.ts --out .reports/lint_issues.json",
"format": "prettier --write .",
"sonar-scanner": "sonar-scanner",
"audit": "npm audit --prod",
"predeploy": "npm install && npm run prepush",
"package": "mkdir ${ZIP_NAME} && cp package.json package-lock.json ${ZIP_NAME}/ && cp -r .build/src/* ${ZIP_NAME}/ && cd ${ZIP_NAME} && npm ci --omit=dev --ignore-scripts && rm package.json package-lock.json && zip -qr ../${ZIP_NAME}.zip .",
"precommit": "npm run security-checks && npm run audit && npm run lint && npm run format",
"commit-msg": "commitlint --edit $1",
"prepare": "husky install"
},
"author": "",
"license": "MIT",
"devDependencies": {
"@babel/core": "7.23.3",
"@babel/preset-env": "^7.22.15",
"@babel/preset-typescript": "^7.22.15",
"@commitlint/cli": "17.7.1",
"@commitlint/config-conventional": "17.7.0",
"@types/jest": "^29.5.4",
"@types/jest-plugin-context": "^2.9.5",
"@types/lambda-tester": "^4.0.1",
"@types/node": "^20.5.9",
"@types/request": "^2.48.8",
"@types/supertest": "^2.0.8",
"audit-filter": "^0.5.0",
"aws-sdk-client-mock": "^4.0.0",
"babel-jest": "^29.6.4",
"commitlint-plugin-function-rules": "2.0.2",
"husky": "^8.0.3",
"jest": "29.6.4",
"jest-plugin-context": "^2.9.0",
"jest-sonar-reporter": "^2.0.0",
"lambda-tester": "^4.0.1",
"lodash": "^4.17.21",
"prettier": "3.0.3",
"serverless": "^3.28.1",
"serverless-dynamodb": "^0.2.43",
"serverless-offline": "13.3.4",
"serverless-plugin-tracing": "^2.0.0",
"serverless-plugin-typescript": "^2.1.4",
"sonarqube-scanner": "3.3.0",
"supertest": "^4.0.2",
"ts-jest": "29.0.5",
"ts-node": "^10.9.1",
"tslint": "^5.20.1",
"tslint-jsdoc-rules": "^0.2.0",
"typescript": "^5.2.2"
},
"dependencies": {
"@aws-sdk/client-dynamodb": "^3.637.0",
"@aws-sdk/lib-dynamodb": "^3.637.0",
"@smithy/smithy-client": "^2.5.0",
"@dvsa/cvs-type-definitions": "6.0.1",
"aws-lambda": "1.0.7",
"aws-xray-sdk": "3.6.0",
"js-yaml": "3.14.1",
"node-yaml": "4.0.1",
"path-parser": "^6.1.0",
"reflect-metadata": "^0.1.13"
},
"jestSonar": {
"reportPath": ".reports",
"reportFile": "test-report.xml",
"indent": 4
}
}