-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpackage.json
More file actions
78 lines (78 loc) · 3.67 KB
/
package.json
File metadata and controls
78 lines (78 loc) · 3.67 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
{
"dependencies": {
"serve": "^14.2.4"
},
"devDependencies": {
"@openapitools/openapi-generator-cli": "^2.21.4",
"@redocly/cli": "^1.34.5",
"@tsconfig/node22": "^22.0.2",
"@types/jest": "^29.5.14",
"@typescript-eslint/eslint-plugin": "^8.27.0",
"@typescript-eslint/parser": "^8.27.0",
"esbuild": "^0.24.0",
"eslint": "^9.27.0",
"eslint-config-airbnb-extended": "^1.0.11",
"eslint-config-next": "^15.3.2",
"eslint-config-prettier": "^10.1.5",
"eslint-import-resolver-typescript": "^4.4.2",
"eslint-plugin-html": "^8.1.3",
"eslint-plugin-import-x": "^4.13.3",
"eslint-plugin-jest": "^28.11.0",
"eslint-plugin-json": "^4.0.1",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-no-relative-import-paths": "^1.6.1",
"eslint-plugin-prettier": "^5.4.0",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-security": "^3.0.1",
"eslint-plugin-sonarjs": "^3.0.2",
"eslint-plugin-sort-destructure-keys": "^2.0.0",
"eslint-plugin-unicorn": "^61.0.2",
"jest": "^29.7.0",
"jest-environment-jsdom": "^30.0.4",
"jest-html-reporter": "^3.10.2",
"jest-mock-extended": "^3.0.7",
"lcov-result-merger": "^5.0.1",
"openapi-typescript": "^7.8.0",
"ts-jest": "^29.3.0",
"ts-node": "^10.9.2",
"tsx": "^4.19.3",
"typescript": "^5.8.3"
},
"name": "nhs-notify-supplier-api",
"overrides": {
"pretty-format": {
"react-is": "19.0.0"
},
"react": "^19.0.0"
},
"scripts": {
"build": "npm run bundle-oas && npm run generate --buildver=$npm_config_buildver",
"bundle-oas": "cp -r sandbox/data/examples/. specification/api/components/examples && mkdir -p build && redocly bundle specification/api/notify-supplier-phase1.yml --dereferenced -k --remove-unused-components --ext yml > build/notify-supplier.yml",
"generate": "npm run generate:cs --buildver=$npm_config_buildver && npm run generate:html && npm run generate:ts --buildver=$npm_config_buildver && npm run generate:python",
"generate-dependencies": "npm run generate-dependencies --workspaces --if-present",
"generate-sandbox": "openapi-generator-cli generate -g nodejs-express-server -i build/notify-supplier.json --skip-validate-spec -o sandbox-staging",
"generate:cs": "./sdk/generate-cs.sh $npm_config_buildver",
"generate:cs-server": "./server/generate-cs-server.sh $npm_config_buildver",
"generate:html": "docker run --rm --user $(id -u) -v ${PWD}:/local openapitools/openapi-generator-cli generate -i /local/build/notify-supplier.yml -g html -o /local/sdk/html --skip-validate-spec",
"generate:python": "docker run --rm --user $(id -u) -v ${PWD}:/local openapitools/openapi-generator-cli generate -i /local/build/notify-supplier.yml -g python -o /local/sdk/python --skip-validate-spec",
"generate:ts": "./sdk/generate-ts.sh $npm_config_buildver",
"lint": "npm run lint --workspaces",
"lint-oas": "redocly lint specification/api/notify-supplier-phase1.yml",
"lint:fix": "npm run lint:fix --workspaces",
"publish-oas": "mkdir -p build && redocly bundle specification/api/notify-supplier-phase1.yml --dereferenced -k --remove-unused-components --ext json > build/notify-supplier.json",
"serve": "npm run serve-html-docs",
"serve-html-docs": "npx serve sdk/html -p 3050",
"serve-oas": "redocly preview -p 5001 -d specification/api",
"serve-swagger-docs": "npx serve sdk/swagger -p 3051",
"start": "npm run start --workspace frontend",
"test:unit": "npm run test:unit --workspaces",
"typecheck": "npm run typecheck --workspaces"
},
"workspaces": [
"lambdas/api-handler",
"lambdas/authorizer",
"internal/datastore",
"scripts/test-data",
"docs"
]
}