-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
124 lines (124 loc) · 7.46 KB
/
package.json
File metadata and controls
124 lines (124 loc) · 7.46 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
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
114
115
116
117
118
119
120
121
122
123
124
{
"name": "account-components",
"version": "1.0.0",
"type": "module",
"engines": {
"node": ">=24.11.1 <25"
},
"dependencies": {
"@aws-lambda-powertools/logger": "^2.32.0",
"@aws-lambda-powertools/metrics": "^2.32.0",
"@aws-lambda-powertools/parameters": "^2.32.0",
"@aws-sdk/client-appconfigdata": "^3.1021.0",
"@aws-sdk/client-dynamodb": "^3.1021.0",
"@aws-sdk/client-kms": "^3.1021.0",
"@aws-sdk/client-s3": "^3.1021.0",
"@aws-sdk/client-secrets-manager": "^3.1021.0",
"@aws-sdk/client-sqs": "^3.1021.0",
"@aws-sdk/client-ssm": "^3.1021.0",
"@aws-sdk/lib-dynamodb": "^3.1021.0",
"@fastify/aws-lambda": "^6.4.0",
"@fastify/cookie": "^11.0.2",
"@fastify/csrf-protection": "^7.1.0",
"@fastify/formbody": "^8.0.2",
"@fastify/helmet": "^13.0.2",
"@fastify/session": "^11.1.1",
"@fastify/static": "^9.0.0",
"@govuk-one-login/frontend-device-intelligence": "^1.2.0",
"@govuk-one-login/frontend-ui": "^5.0.1",
"@simplewebauthn/browser": "^13.3.0",
"@simplewebauthn/server": "^13.3.0",
"@smithy/node-http-handler": "^4.4.6",
"aws-xray-sdk": "^3.12.0",
"axios": "^1.14.0",
"cookie": "^1.1.1",
"ecdsa-sig-formatter": "^1.0.11",
"esbuild": "^0.27.4",
"fastify": "^5.8.3",
"fastify-plugin": "^5.1.0",
"govuk-frontend": "^6.1.0",
"i18next": "^26.0.3",
"i18next-http-middleware": "^3.9.2",
"jose": "^6.2.2",
"notifications-node-client": "^8.3.2",
"nunjucks": "^3.2.4",
"obscenity": "^0.4.6",
"ts-deepmerge": "^7.0.3",
"valibot": "^1.3.1",
"xstate": "^5.30.0"
},
"devDependencies": {
"@eslint/compat": "^2.0.3",
"@eslint/js": "^10.0.1",
"@redocly/cli": "^2.25.3",
"@tsconfig/node24": "^24.0.4",
"@tsconfig/strictest": "^2.0.8",
"@types/aws-lambda": "^8.10.161",
"@types/node": "^24.12.0",
"@types/nunjucks": "^3.2.6",
"@vitest/coverage-v8": "^4.1.2",
"@vitest/eslint-plugin": "^1.6.13",
"chokidar-cli": "^3.0.0",
"concurrently": "^9.2.1",
"csso-cli": "^4.0.2",
"eslint": "^10.1.0",
"eslint-plugin-depend": "^1.5.0",
"eslint-plugin-n": "^17.23.2",
"eslint-plugin-playwright": "^2.10.1",
"fast-json-stable-stringify": "^2.1.0",
"json-schema-to-typescript": "^15.0.4",
"knip": "^6.1.0",
"pino": "^10.3.1",
"prettier": "^3.8.1",
"rolldown": "1.0.0-rc.12",
"sass": "^1.98.0",
"tsx": "^4.21.0",
"typescript": "^5.9.3",
"typescript-eslint": "^8.58.0",
"vitest": "^4.0.13"
},
"scripts": {
"install-all": "npm ci && npm run install-submodules",
"install-submodules": "git submodule update --init --recursive",
"install-brewfile": "cat Brewfile; echo; echo; read -p \"Install/update Brewfile dependencies as shown above (y/N)?\" -n 1 -r; echo; if [ \"$REPLY\" == \"y\" ]; then brew bundle check || brew bundle install; fi",
"install-git-hooks": "pre-commit install --install-hooks --overwrite",
"generate-config-types": "json2ts -i solutions/config/schema/config.json -o solutions/config/schema/types.ts",
"check-types": "npm run generate-config-types && tsc --noEmit",
"eslint": "eslint . --report-unused-disable-directives --cache --max-warnings 0",
"eslint:fix": "eslint . --fix --report-unused-disable-directives --cache --max-warnings 0",
"tflint": "tflint --init && tflint --recursive --format compact --chdir solutions/infra",
"tflint:fix": "tflint --init && tflint --recursive --format compact --chdir solutions/infra --fix",
"cfnlint": "git ls-files \"*.cf.yaml\" | xargs cfn-lint",
"format": "prettier . --check",
"format:fix": "prettier . --write",
"knip": "knip",
"knip:fix": "knip --fix --allow-remove-files",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"detect-secrets": "git ls-files -z | xargs -0 detect-secrets-hook --verbose --baseline .secrets.baseline # pragma: allowlist-secret",
"check-gh-actions": "zizmor .",
"check-gh-actions:fix": "zizmor . --fix",
"sam-validate:core": "sam validate --region eu-west-2 --lint -t solutions/core/template.yaml",
"sam-validate:frontend": "sam validate --region eu-west-2 --lint -t solutions/frontend/template.yaml",
"sam-validate:stubs": "sam validate --region eu-west-2 --lint -t solutions/stubs/template.yaml",
"sam-validate:api": "sam validate --region eu-west-2 --lint -t solutions/api/template.yaml",
"build:frontend": "cd solutions/frontend && bash ../commons/utils/fastify/build/production.sh",
"build-local:frontend": "cd solutions/frontend && bash ../commons/utils/fastify/build/local.sh",
"watch:frontend": "chokidar \"./solutions/frontend/src/**/*\" \"./solutions/commons/**/*\" \"./solutions/config/local-config.ts\" -c \"npm run build-local:frontend\"",
"run:frontend": "([ -n \"$RUN_ALL\" ] || bash solutions/localstack/provision.sh) && npm run build-local:frontend && concurrently 'npm run watch:frontend' 'cd solutions/frontend && node --enable-source-maps --watch --env-file=$([ \"$IS_INTEGRATION_TEST\" = \"1\" ] && echo \".env.integration-tests\" || echo \".env\") ./dist/local.js' 'npm run watch:config-schema-if-not-running-all' --kill-others",
"build:stubs": "cd solutions/stubs && bash ../commons/utils/fastify/build/production.sh",
"build-local:stubs": "cd solutions/stubs && bash ../commons/utils/fastify/build/local.sh",
"watch:stubs": "chokidar \"./solutions/stubs/src/**/*\" \"./solutions/commons/**/*\" \"./solutions/config/local-config.ts\" -c \"npm run build-local:stubs\"",
"run:stubs": "([ -n \"$RUN_ALL\" ] || bash solutions/localstack/provision.sh) && npm run build-local:stubs && concurrently 'npm run watch:stubs' 'cd solutions/stubs && node --enable-source-maps --watch --env-file=$([ \"$IS_INTEGRATION_TEST\" = \"1\" ] && echo \".env.integration-tests\" || echo \".env\") ./dist/local.js' 'npm run watch:config-schema-if-not-running-all' --kill-others",
"build:api": "cd solutions/api && sam build --base-dir ../../",
"run:api": "([ -n \"$RUN_ALL\" ] || bash solutions/localstack/provision.sh) && npm run build:api && concurrently 'docker ps -a | grep lambda/nodejs: | awk '\\''{print $1}'\\'' | xargs -r docker rm -f > /dev/null && cd solutions/api && ARCH=$(uname -m) && sam local start-api --warm-containers EAGER --port 6004 --docker-network account-components-network --add-host host.docker.internal:host-gateway --env-vars=$([ \"$IS_INTEGRATION_TEST\" = \"1\" ] && echo \"env.integration-tests.json\" || echo \"env.json\") --parameter-overrides LambdaArchitecture=$([ \"$ARCH\" = \"arm64\" ] || [ \"$ARCH\" = \"aarch64\" ] && echo \"arm64\" || echo \"x86_64\")' 'npm run watch:config-schema-if-not-running-all' --kill-others",
"build:core": "cd solutions/core && sam build",
"watch:config-schema": "npm run generate-config-types && chokidar \"./solutions/config/schema/config.json\" -c \"npm run generate-config-types\"",
"watch:config-schema-if-not-running-all": "[ -n \"$RUN_ALL\" ] && sleep infinity || npm run watch:config-schema",
"run:all": "bash solutions/localstack/provision.sh && RUN_ALL=1 concurrently 'npm run run:frontend' 'npm run run:stubs' 'npm run run:api' 'npm run watch:config-schema' --kill-others",
"config:validate": "for f in solutions/config/*.json; do (jsonschema validate solutions/config/schema/config.json $f) || exit 1; done",
"api-specs:validate": "redocly lint solutions/**/open-api-spec.yaml",
"audit": "npm audit --audit-level=moderate && npm audit signatures && cd solutions/integration-tests && npm run audit"
}
}