Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
67 lines (67 loc) · 2.27 KB
/
Copy pathpackage.json
File metadata and controls
67 lines (67 loc) · 2.27 KB
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
{
"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",
"type": "module",
"engines": {
"node": "24.10.*",
"npm": "11.6.*"
},
"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": "bun 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.5.1",
"jsonwebtoken": "^9.0.3"
},
"devDependencies": {
"@commitlint/cli": "^20.5.0",
"@commitlint/config-conventional": "^20.5.0",
"@types/aws-lambda": "^8.10.161",
"@types/bun": "1.3.11",
"@types/jest": "^29.5.12",
"@types/jest-plugin-context": "2.9.7",
"@types/jsonwebtoken": "^9.0.6",
"@types/node": "^24.12.0",
"bun": "1.3.11",
"esbuild": "0.27.4",
"husky": "^9.1.7",
"jest": "^29.7.0",
"jest-plugin-context": "2.9.0",
"jest-sonar-reporter": "2.0.0",
"osls": "3.63.2",
"prettier": "3.8.1",
"serverless-dotenv-plugin": "6.0.0",
"serverless-offline": "^14.5.0",
"serverless-plugin-typescript": "^2.1.5",
"ts-jest": "^29.2.5",
"tslint": "6.1.3",
"typescript": "6.0.2"
},
"jestSonar": {
"reportPath": ".reports",
"reportFile": "test-report.xml",
"indent": 4
},
"overrides": {
"serverless": "npm:osls",
"typescript": "$typescript"
}
}