-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
96 lines (96 loc) · 3.33 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
{
"name": "cvs-tsk-cert-gen-init",
"version": "0.0.1",
"description": "Certificate generation initiation task",
"main": "handler.js",
"engines": {
"node": "18.*"
},
"scripts": {
"start": "serverless invoke local -f main --path tests/resources/stream-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\" \\) | cpio -pdm .build",
"build:docker": "docker-compose -f docker-compose.yml up -d --build",
"test:unit": "BRANCH=local SLS_DEBUG=* AWS_XRAY_CONTEXT_MISSING=LOG_ERROR jest --testMatch=\"**/*.unitTest.ts\" --runInBand --detectOpenHandles",
"test": "npm run test:unit -- --coverage",
"test-i": "echo 'nothing to do'",
"lint": "tslint --project .",
"format": "prettier --write .",
"sonar-scanner": "npm run test && sonar-scanner",
"prepush": "npm run test && npm run build && npm run test-i",
"security-checks": "git secrets --scan",
"audit:check": "npm audit --json | audit-filter --nsp-config=.nsprc --audit=-",
"audit": "npm audit --prod",
"package": "mkdir ${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 .",
"tools-setup": "echo 'nothing to do'"
},
"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-secrets-manager": "^3.549.0",
"@aws-sdk/client-sqs": "^3.547.0",
"@aws-sdk/util-dynamodb": "^3.549.0",
"@smithy/smithy-client": "^2.5.0",
"aws-lambda": "^1.0.5",
"aws-sdk-client-mock": "^4.0.0",
"aws-xray-sdk": "^3.6.0",
"node-yaml": "^3.2.0",
"reflect-metadata": "^0.1.13"
},
"devDependencies": {
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^12.1.4",
"@types/aws-lambda": "^8.10.34",
"@types/jest": "^24.0.21",
"@types/jest-plugin-context": "^2.9.2",
"@types/node": "^10.17.3",
"audit-filter": "^0.5.0",
"aws-lambda-mock-context": "^3.2.1",
"husky": "^3.0.9",
"jest": "^29.6.4",
"jest-plugin-context": "^2.9.0",
"jest-sonar-reporter": "^2.0.0",
"prettier": "^2.3.2",
"serverless": "^3.0.0",
"serverless-plugin-tracing": "^2.0.0",
"serverless-plugin-typescript": "^2.1.2",
"sonar-scanner": "^3.1.0",
"ts-jest": "^29.1.1",
"ts-node-register": "^1.0.0",
"tslint": "^5.20.0",
"typescript": "^5.0.4"
},
"jestSonar": {
"reportPath": "coverage",
"reportFile": "test-report.xml",
"indent": 4
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": " npm run security-checks && npm run audit && npm run lint && npm run format",
"pre-push": "npm run prepush"
}
}
}