-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
113 lines (113 loc) · 4.56 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
{
"name": "cvs-tsk-update-store",
"version": "0.0.1",
"description": "Update Store Microservice",
"main": "handler.js",
"engines": {
"node": "18.*",
"npm": "9.*"
},
"repository": {
"type": "git",
"url": "https://github.com/dvsa/cvs-tsk-update-store.git"
},
"scripts": {
"start": "serverless invoke local -f main --path tests/resources/queue-event.json",
"start:docker": "docker-compose -f docker-compose.yml up -d",
"build": "node_modules/typescript/bin/tsc --rootDir ./ --outDir .build --sourceMap false && npm run build:copy",
"build:dev": "node_modules/typescript/bin/tsc && 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\" -or -name \"*.base64\" \\) | cpio -pdm .build",
"build:docker": "docker-compose -f docker-compose.yml up -d --build",
"test-all": "cross-env SQS_BUCKET=local AWS_REGION=local BRANCH=local USE_CONTAINERIZED_DATABASE=1 AWS_XRAY_CONTEXT_MISSING=LOG_ERROR jest --runInBand --coverage --collectCoverageFrom=\"src/!(models)/**/!(*conversion).{js,ts}\"",
"test": "cross-env SQS_BUCKET=local AWS_REGION=local BRANCH=local AWS_XRAY_CONTEXT_MISSING=LOG_ERROR jest --selectProjects UNIT --runInBand --coverage --collectCoverageFrom=\"src/!(models)/**/!(*conversion).{js,ts}\"",
"test-i": "cross-env SQS_BUCKET=local AWS_REGION=local USE_CONTAINERIZED_DATABASE=0 BRANCH=local jest --selectProjects INTEGRATION --runInBand",
"test-local-i": "cross-env SQS_BUCKET=local AWS_REGION=local BRANCH=local USE_CONTAINERIZED_DATABASE=1 jest --selectProjects INTEGRATION --runInBand --coverage --collectCoverageFrom=\"src/!(models)/**/!(*conversion).{js,ts}\"",
"lint:fix": "eslint '*/**/*.ts' --quiet --fix",
"lint": "eslint '*/**/*.ts'",
"prettier": "prettier --write ./**/*.{js,ts}",
"prepush": "npm run build && npm run test-local-i",
"sonar-scanner": "sonar-scanner",
"audit": "npm audit --omit=dev",
"package": "mkdir -p ${ZIP_NAME} && cp package.json package-lock.json ${ZIP_NAME}/ && cp -r .build/src/* ${ZIP_NAME}/ && cd ${ZIP_NAME} && npm ci --production && rm package.json package-lock.json && zip -qr ../${ZIP_NAME}.zip .",
"security-checks": "git secrets --register-aws && git secrets --scan",
"tools-setup": "liquibase --changeLogFile ../cvs-nop/changelog-master.xml --username root --password 12345 --url jdbc:mysql://127.0.0.1:3306/CVSBNOP?createDatabaseIfNotExist=true --classpath /liquibase/lib/mysql.jar update",
"prepare": "husky install"
},
"nyc": {
"include": [
"src/**/*.ts",
"src/**/*.tsx"
],
"extension": [
".ts",
".tsx"
],
"require": [
"ts-node/register"
],
"reporter": [
"text-summary",
"html"
],
"sourceMap": true,
"instrument": true
},
"author": "",
"license": "ISC",
"dependencies": {
"@aws-sdk/client-dynamodb": "3.632.0",
"@aws-sdk/client-dynamodb-streams": "3.632.0",
"@aws-sdk/client-secrets-manager": "3.632.0",
"@aws-sdk/util-dynamodb": "3.577.0",
"@dvsa/cvs-type-definitions": "^7.4.0",
"@types/lambda-tester": "4.0.3",
"aws-xray-sdk": "3.6.0",
"date-fns": "3.6.0",
"moment": "2.30.1",
"mysql2": "3.9.8",
"reflect-metadata": "0.2.2",
"ts-node-register": "1.0.0",
"uuid": "9.0.1"
},
"devDependencies": {
"@commitlint/cli": "19.3.0",
"@commitlint/config-conventional": "19.2.2",
"@dvsa/eslint-config-ts": "3.0.1",
"@types/aws-lambda": "8.10.138",
"@types/jest": "29.5.12",
"@types/jest-plugin-context": "2.9.7",
"@types/node": "20.12.12",
"@types/request-promise": "4.1.51",
"@types/sinon": "17.0.3",
"@types/uuid": "9.0.8",
"@typescript-eslint/eslint-plugin": "7.11.0",
"@typescript-eslint/parser": "7.11.0",
"audit-filter": "0.5.0",
"aws-sdk-client-mock": "4.0.0",
"commitlint": "19.3.0",
"cross-env": "7.0.3",
"husky": "9.0.11",
"jest": "29.7.0",
"jest-mock": "29.7.0",
"jest-plugin-context": "2.9.0",
"jest-serial-runner": "1.2.1",
"jest-sonar-reporter": "2.0.0",
"lambda-tester": "4.0.1",
"liquibase": "4.27.0",
"prettier": "3.2.5",
"serverless": "3.38.0",
"serverless-offline": "13.6.0",
"serverless-plugin-tracing": "2.0.0",
"serverless-plugin-typescript": "2.1.5",
"sinon": "18.0.0",
"sonar-scanner": "3.1.0",
"testcontainers": "10.9.0",
"ts-jest": "29.1.4",
"typescript": "5.4.5"
},
"jestSonar": {
"reportPath": ".reports",
"reportFile": "test-report.xml",
"indent": 4
}
}