-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
60 lines (60 loc) · 2.12 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
{
"name": "cvs-svc-authoriser",
"version": "1.0.0",
"description": "Lambda authoriser for validating a user's Azure AD JWT and generating an access policy.",
"main": "handler.js",
"engines": {
"node": "20.*",
"npm": "10.*"
},
"scripts": {
"start": "sls offline start",
"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",
"test": "npm run test:unit -- --runInBand --coverage",
"test:unit": "BRANCH=local jest --testMatch=\"**/*.unitTest.ts\"",
"package": "ts-node package.ts && cd ${ZIP_NAME:-'authoriser'}; zip -r ../${ZIP_NAME:-'authoriser'}.zip *",
"test-i": "echo \"No Current Int Tests\"",
"security-checks": "git secrets --scan",
"lint": "tslint src/**/*.ts tests/**/*.ts",
"format": "prettier --write .",
"sonar-scanner": "sonar-scanner",
"audit": "npm audit --omit=dev",
"prepare": "husky",
"tools-setup": "echo 'Nothing to do'"
},
"author": "DVSA",
"license": "ISC",
"dependencies": {
"@dvsa/cvs-microservice-common": "^1.2.3",
"jsonwebtoken": "^9.0.2"
},
"devDependencies": {
"@commitlint/cli": "^19.4.1",
"@commitlint/config-conventional": "^19.4.1",
"@types/aws-lambda": "^8.10.145",
"@types/jest": "^29.5.12",
"@types/jest-plugin-context": "2.9.7",
"@types/jsonwebtoken": "^9.0.6",
"@types/node": "^20.16.4",
"esbuild": "0.23.1",
"husky": "^9.1.5",
"jest": "^29.7.0",
"jest-plugin-context": "2.9.0",
"jest-sonar-reporter": "2.0.0",
"prettier": "2.8.7",
"serverless": "^3.39.0",
"serverless-dotenv-plugin": "6.0.0",
"serverless-offline": "^13.8.0",
"serverless-plugin-typescript": "^2.1.5",
"ts-jest": "^29.2.5",
"tslint": "6.1.3",
"typescript": "5.5.4"
},
"jestSonar": {
"reportPath": ".reports",
"reportFile": "test-report.xml",
"indent": 4
}
}