-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
104 lines (104 loc) · 5.21 KB
/
package.json
File metadata and controls
104 lines (104 loc) · 5.21 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
{
"name": "@defra/forms-manager",
"version": "0.0.0",
"private": true,
"description": "Defra forms manager",
"license": "OGL-UK-3.0",
"author": "Defra DDTS",
"type": "module",
"main": ".server/index.js",
"scripts": {
"build": "npm run build:server",
"build:server": "babel --delete-dir-on-start --ignore \"**/*.test.js\" --ignore \"src/__fixtures__\" --copy-files --no-copy-ignored --keep-file-extension --source-maps --out-dir ./.server ./src",
"dev": "npm run server:watch:dev",
"dev:debug": "npm run server:watch:debug",
"format": "prettier --write \"**/*.{cjs,js,json,md,mjs}\"",
"format:check": "prettier --check \"**/*.{cjs,js,json,md,mjs}\"",
"postinstall": "npm run setup:husky",
"lint": "npm run lint:editorconfig && npm run lint:js && npm run lint:types",
"lint:editorconfig": "editorconfig-checker",
"lint:fix": "npm run lint:js -- --fix",
"lint:js": "eslint . --max-warnings 0",
"lint:types": "tsc --noEmit",
"postversion": "git add package.json package-lock.json && git commit -m $npm_package_version",
"test": "jest --color --coverage --verbose",
"test:watch": "jest --color --watch",
"test:integration:setup": "docker compose -f docker-compose.integration-test.yml up -d localstack oidc mongo_test forms-entitlement-api-test",
"test:integration:seed": "docker run --rm --network forms-manager_forms_test_net -v './test/utils/seed-users.json:/seed-users.json' mongo:6.0 mongoimport --uri 'mongodb://mongo_test:27017/forms-entitlement-api?replicaSet=rs0&directConnection=true' --collection user-entitlement --file /seed-users.json --jsonArray --mode=upsert --upsertFields=userId",
"test:integration:start": "docker compose -f docker-compose.integration-test.yml up --build -d app_test",
"test:integration:wait": "echo 'Waiting for app...' && sleep 15 && until curl --fail http://localhost:3001/health; do echo 'Still waiting...'; sleep 5; done; echo 'App ready!'",
"test:integration:run": "docker compose -f docker-compose.integration-test.yml run --rm --entrypoint=\"\" newman sh -c \"npm install -g newman-reporter-htmlextra && newman run /etc/newman/forms-manager-ci-mock.postman_collection.json -e /etc/newman/forms-manager-ci-mock.postman_environment.json -r cli,json,htmlextra --reporter-json-export /etc/newman/reports/newman-summary.json --reporter-htmlextra-export /etc/newman/reports/newman-report.html --reporter-htmlextra-showConsoleLogs\"",
"test:integration:stop": "docker compose -f docker-compose.integration-test.yml down -v --remove-orphans",
"test:integration": "npm run test:integration:setup && npm run test:integration:seed && npm run test:integration:start && npm run test:integration:wait && npm run test:integration:run; EXIT_CODE=$? && exit $EXIT_CODE",
"server:watch": "NODE_ENV=development tsx watch --clear-screen=false --enable-source-maps --exclude \"**/*.test.*\"",
"server:watch:dev": "npm run server:watch -- ./src/index.js",
"server:watch:debug": "npm run server:watch -- --inspect-wait ./src/index.js",
"prestart": "npm run build",
"start": "NODE_ENV=${NODE_ENV:-production} node --enable-source-maps ./.server",
"setup:husky": "node -e \"try { (await import('husky')).default() } catch (e) { if (e.code !== 'ERR_MODULE_NOT_FOUND') throw e }\" --input-type module",
"migrate:up": "migrate-mongo up -f migrate-mongo-config.js",
"migrate:down": "migrate-mongo down -f migrate-mongo-config.js",
"migrate:status": "migrate-mongo status -f migrate-mongo-config.js"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.995.0",
"@aws-sdk/client-sns": "^3.995.0",
"@defra/forms-model": "^3.0.648",
"@defra/hapi-tracing": "^1.29.0",
"@elastic/ecs-pino-format": "^1.5.0",
"@hapi/hapi": "^21.4.4",
"@hapi/hoek": "^11.0.7",
"@hapi/jwt": "^3.2.1",
"aws4": "^1.13.2",
"convict": "^6.2.5",
"date-fns": "^4.1.0",
"dotenv": "^17.2.3",
"hapi-pino": "^13.0.0",
"http-status-codes": "^2.3.0",
"joi": "^17.13.3",
"migrate-mongo": "^12.1.3",
"mongodb": "^6.21.0",
"pino": "^9.14.0",
"pino-pretty": "^13.1.2",
"proxy-agent": "^6.5.0"
},
"devDependencies": {
"@babel/cli": "^7.28.3",
"@babel/core": "^7.28.5",
"@babel/plugin-syntax-import-attributes": "^7.27.1",
"@babel/preset-env": "^7.28.5",
"@types/convict": "^6.1.6",
"@types/eslint": "^9.6.1",
"@types/jest": "^29.5.14",
"@types/node": "^24.10.1",
"@types/slug": "^5.0.9",
"aws-sdk-client-mock": "^4.1.0",
"aws-sdk-client-mock-jest": "^4.1.0",
"babel-jest": "^30.2.0",
"babel-plugin-module-resolver": "^5.0.2",
"babel-plugin-transform-import-meta": "^2.3.3",
"editorconfig-checker": "^6.1.1",
"eslint": "^9.39.3",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-jest": "^28.14.0",
"eslint-plugin-jsdoc": "^51.4.1",
"globals": "^17.3.0",
"husky": "^9.1.7",
"jest": "^29.7.0",
"lint-staged": "^16.2.6",
"neostandard": "^0.12.2",
"nock": "^14.0.11",
"oidc-client-ts": "^3.4.1",
"prettier": "^3.6.2",
"tsx": "^4.20.6",
"typescript": "^5.9.3",
"typescript-eslint": "^8.56.1"
},
"overrides": {
"fast-xml-parser": ">=5.3.8"
},
"engines": {
"node": "^22.11.0",
"npm": ">=10.9.0 <11.6.4"
}
}