-
Notifications
You must be signed in to change notification settings - Fork 5
/
package.json
148 lines (148 loc) · 6.05 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
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
{
"name": "@nmshd/connector",
"private": true,
"description": "The Enmeshed Connector",
"homepage": "https://enmeshed.eu/integrate",
"repository": "github:nmshd/connector",
"license": "MIT",
"author": "j&s-soft AG",
"workspaces": [
".",
"packages/sdk"
],
"scripts": {
"lint": "npm run lint:tsc && npm run lint:prettier && npm run lint:eslint",
"lint:prettier": "prettier --check ./src ./test ./packages/*/src",
"lint:eslint": "eslint --ext .ts ./src ./test ./packages/*/src",
"lint:tsc": "npm run build --workspaces && tsc -p test/tsconfig.json --noEmit",
"build": "run-p tsc copy-additional-files",
"build:ci": "npm run build",
"build:watch": "run-p -r tsc:watch copy-additional-files:watch sdk:build:watch sdk:schemas:watch",
"sdk:build": "npm run --workspace packages/sdk build",
"sdk:build:watch": "npm run --workspace packages/sdk build:watch",
"sdk:schemas:watch": "npm run --workspace packages/sdk build:schemas:watch",
"copy-additional-files": "cpx \"src/**/*.{json,yml,ico}\" dist",
"copy-additional-files:watch": "cpx \"src/**/*.{json,yml,ico}\" dist --watch",
"link-runtime": "bash .dev/scripts/linkRuntime.sh",
"unlink-runtime": "rm -rf node_modules/@nmshd && npm install",
"tsc": "tsc",
"tsc:watch": "tsc -w",
"test:ci": "npm run build && c8 jest -i",
"test:local": "npm run test:local:mongo",
"test:local:mongo": "npm run build --workspaces && npm run start:test-env:mongo && DATABASE_CONNECTION_STRING=\"mongodb://localhost:27018\" jest",
"test:local:coverage": "npm run build --workspaces && npm run start:test-env:mongo && DATABASE_CONNECTION_STRING=\"mongodb://localhost:27018\" c8 jest",
"test:local:ferretdb": "npm run build --workspaces && npm run start:test-env:ferretdb && DATABASE_CONNECTION_STRING=\"mongodb://localhost:27019\" jest",
"generate:connectorConfigSchema": "npx ts-json-schema-generator -p ./src/jsonSchemas/connectorConfig.ts -o ./src/jsonSchemas/connectorConfig.json -t \"ConnectorConfig\" --no-top-ref && prettier -w src/jsonSchemas/connectorConfig.json",
"start:backbone": "docker compose -p connector-test-backbone --env-file .dev/compose.backbone.env -f .dev/compose.backbone.yml up -d",
"start:test-env": "docker compose -p connector-tests -f test/compose.yml up -d",
"start:test-env:ferretdb": "npm run start:test-env -- ferret",
"start:test-env:mongo": "npm run start:test-env -- mongo",
"teardown": "npm run teardown:backbone && npm run teardown:test-env && npm run teardown:testconnectors",
"teardown:backbone": "docker compose -p connector-test-backbone --env-file .dev/compose.backbone.env -f .dev/compose.backbone.yml down -v",
"teardown:test-env": "docker compose -p connector-tests -f test/compose.yml down -v",
"teardown:testconnectors": "docker compose -f .dev/compose.yml down -v"
},
"jest": {
"maxWorkers": 2,
"preset": "ts-jest",
"setupFilesAfterEnv": [
"jest-expect-message",
"./test/lib/validation.ts",
"./test/lib/customMatcher.ts",
"./test/lib/setTimeout.ts"
],
"testEnvironment": "node",
"testPathIgnorePatterns": [
"/node_modules/"
],
"testTimeout": 60000,
"transform": {
"^.+\\.ts$": [
"ts-jest",
{
"tsconfig": "test/tsconfig.json"
}
]
}
},
"c8": {
"all": true,
"reporter": [
"lcov",
"text-summary",
"cobertura"
],
"src": [
"src",
"packages/sdk/src"
]
},
"dependencies": {
"@google-cloud/pubsub": "4.8.0",
"@js-soft/docdb-access-loki": "^1.1.0",
"@js-soft/docdb-access-mongo": "1.1.9",
"@js-soft/node-logger": "1.2.0",
"@js-soft/ts-utils": "^2.3.3",
"@nmshd/runtime": "6.7.0",
"@nmshd/typescript-ioc": "^3.2.4",
"@nmshd/typescript-rest": "^3.0.5",
"agentkeepalive": "4.5.0",
"amqplib": "^0.10.4",
"axios": "^1.7.7",
"compression": "1.7.5",
"correlation-id": "^5.2.0",
"cors": "2.8.5",
"eventsource": "^2.0.2",
"express": "4.21.1",
"helmet": "8.0.0",
"json-stringify-safe": "5.0.1",
"jsonschema": "1.4.1",
"mqtt": "^5.10.1",
"nconf": "0.12.1",
"on-headers": "1.0.2",
"rapidoc": "9.3.8",
"redis": "^4.7.0",
"reflect-metadata": "0.2.2",
"swagger-ui-express": "5.0.1",
"yamljs": "0.3.0",
"yargs": "^17.7.2"
},
"devDependencies": {
"@apidevtools/swagger-parser": "^10.1.0",
"@js-soft/eslint-config-ts": "1.6.13",
"@js-soft/license-check": "1.0.9",
"@nmshd/connector-sdk": "*",
"@nmshd/content": "6.7.0",
"@nmshd/core-types": "6.7.0",
"@nmshd/typescript-rest-swagger": "^1.4.1",
"@types/amqplib": "^0.10.5",
"@types/compression": "^1.7.5",
"@types/cors": "^2.8.17",
"@types/eventsource": "^1.1.15",
"@types/express": "5.0.0",
"@types/jest": "^29.5.14",
"@types/jest-json-schema": "^6.1.4",
"@types/json-stringify-safe": "^5.0.3",
"@types/lodash": "^4.17.13",
"@types/luxon": "^3.4.2",
"@types/nconf": "^0.10.7",
"@types/node": "^22.9.0",
"@types/on-headers": "^1.0.3",
"@types/swagger-ui-express": "^4.1.7",
"@types/yamljs": "^0.2.34",
"c8": "^10.1.2",
"cpx2": "^8.0.0",
"eslint": "^8.57.1",
"jest": "^29.7.0",
"jest-expect-message": "^1.1.3",
"jest-json-schema": "^6.1.0",
"lodash": "^4.17.21",
"nodemon": "^3.1.7",
"npm-run-all": "^4.1.5",
"openapi-types": "^12.1.3",
"prettier": "^3.3.3",
"ts-jest": "^29.2.5",
"ts-node": "^10.9.2",
"typescript": "^5.6.3"
}
}