-
Notifications
You must be signed in to change notification settings - Fork 61
/
package.json
124 lines (124 loc) · 5.8 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
{
"name": "root",
"devDependencies": {
"@types/chai-as-promised": "^7.1.5",
"@types/co-body": "6.1.0",
"@types/koa-cors": "^0.0.6",
"@typescript-eslint/eslint-plugin": "^6.5.0",
"@typescript-eslint/parser": "^6.5.0",
"axios-mock-adapter": "^1.20.0",
"chai-as-promised": "^7.1.1",
"eslint": "^8.48.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.28.1",
"ethereum-waffle": "^4.0.7",
"husky": "^8.0.3",
"ioredis": "^5.3.2",
"lint-staged": "^14.0.1",
"mocha-junit-reporter": "^2.2.1",
"mocha-multi-reporters": "^1.5.1",
"nodemon": "^2.0.15",
"nyc": "^15.1.0",
"prettier": "^3.0.3",
"replace": "^1.2.2"
},
"workspaces": {
"packages": [
"packages/**"
]
},
"scripts": {
"acceptancetest": "nyc ts-mocha packages/server/tests/acceptance/index.spec.ts --exit",
"acceptancetest:api_batch1": "nyc ts-mocha packages/server/tests/acceptance/index.spec.ts -g '@api-batch-1' --exit",
"acceptancetest:api_batch2": "nyc ts-mocha packages/server/tests/acceptance/index.spec.ts -g '@api-batch-2' --exit",
"acceptancetest:api_batch3": "nyc ts-mocha packages/server/tests/acceptance/index.spec.ts -g '@api-batch-3' --exit",
"acceptancetest:erc20": "nyc ts-mocha packages/server/tests/acceptance/index.spec.ts -g '@erc20' --exit",
"acceptancetest:ratelimiter": "nyc ts-mocha packages/ws-server/tests/acceptance/index.spec.ts -g '@web-socket-ratelimiter' --exit && ts-mocha packages/server/tests/acceptance/index.spec.ts -g '@ratelimiter' --exit",
"acceptancetest:hbarlimiter": "HBAR_RATE_LIMIT_TINYBAR=3000000000 nyc ts-mocha packages/server/tests/acceptance/index.spec.ts -g '@hbarlimiter' --exit",
"acceptancetest:tokencreate": "nyc ts-mocha packages/server/tests/acceptance/index.spec.ts -g '@tokencreate' --exit",
"acceptancetest:tokenmanagement": "nyc ts-mocha packages/server/tests/acceptance/index.spec.ts -g '@tokenmanagement' --exit",
"acceptancetest:htsprecompilev1": "nyc ts-mocha packages/server/tests/acceptance/index.spec.ts -g '@htsprecompilev1' --exit",
"acceptancetest:release": "nyc ts-mocha packages/server/tests/acceptance/index.spec.ts -g '@release' --exit && ts-mocha packages/ws-server/tests/acceptance/index.spec.ts -g '@release' --exit",
"acceptancetest:release_http": "nyc ts-mocha packages/server/tests/acceptance/index.spec.ts -g '@release' --exit",
"acceptancetest:release_ws": "nyc ts-mocha packages/ws-server/tests/acceptance/index.spec.ts -g '@release' --exit",
"acceptancetest:ws": "nyc ts-mocha packages/ws-server/tests/acceptance/index.spec.ts -g '@web-socket' --exit",
"acceptancetest:ws_batch1": "nyc ts-mocha packages/ws-server/tests/acceptance/index.spec.ts -g '@web-socket-batch-1' --exit",
"acceptancetest:ws_batch2": "nyc ts-mocha packages/ws-server/tests/acceptance/index.spec.ts -g '@web-socket-batch-2' --exit",
"acceptancetest:ws_batch3": "nyc ts-mocha packages/ws-server/tests/acceptance/index.spec.ts -g '@web-socket-batch-3' --exit",
"acceptancetest:ws_newheads": "nyc ts-mocha packages/server/tests/acceptance/index.spec.ts -g '@web-socket-newheads' --exit",
"acceptancetest:precompile-calls": "nyc ts-mocha packages/server/tests/acceptance/index.spec.ts -g '@precompile-calls' --exit",
"acceptancetest:cache-service": "nyc ts-mocha packages/server/tests/acceptance/index.spec.ts -g '@cache-service' --exit",
"acceptancetest:rpc_api_schema_conformity": "nyc ts-mocha packages/server/tests/acceptance/index.spec.ts -g '@api-conformity' --exit",
"acceptancetest:serverconfig": "nyc ts-mocha packages/server/tests/acceptance/index.spec.ts -g '@server-config' --exit",
"build": "npx lerna run build",
"build-and-test": "npx lerna run build && npx lerna run test",
"build:docker": "docker build . -t ${npm_package_name}",
"clean": "npx lerna run clean",
"compile": "npx lerna run compile",
"dev": "npm run build && tsc --watch",
"deploy:docker": "docker push ghcr.io/hashgraph/${npm_package_name}:latest",
"format": "npx lerna run format",
"lint": "npx lerna run lint",
"start": "npx lerna exec --scope @hashgraph/json-rpc-server -- npm run start",
"start:ws": "npx lerna exec --scope @hashgraph/json-rpc-ws-server -- npm run start",
"start:docker": "docker run --name hedera-relay -d -p 7546:7546 ${npm_package_name}:latest",
"test": "npx lerna run test",
"openrpctest": "ts-mocha packages/relay/tests/lib/openrpc.spec.ts --exit",
"bump-version": "SEM_VER=${npm_config_semver} SNAPSHOT=${npm_config_snapshot} node scripts/.bump-version.js",
"prepare": "husky install"
},
"dependencies": {
"@ethereumjs/trie": "^6.2.0",
"@hashgraph/hedera-local": "^2.29.0",
"@open-rpc/schema-utils-js": "^1.16.1",
"@types/find-config": "^1.0.4",
"@types/sinon": "^10.0.20",
"chai-exclude": "^2.1.1",
"eslint-config-standard-with-typescript": "^43.0.1",
"eslint-plugin-n": "^15.7.0",
"keyv-file": "^0.3.1",
"koa-cors": "^0.0.16",
"koa-websocket": "^7.0.0",
"lerna": "^8.1.8",
"pino": "^7.11.0",
"pino-pretty": "^7.6.1",
"prom-client": "^14.0.1",
"redis": "^4.7.0",
"ts-node": "^10.9.2",
"typescript": "^4.6.3"
},
"overrides": {
"protobufjs": "^7.2.4",
"semver": "^7.5.3"
},
"lint-staged": {
"packages/**/src/**/*.ts": [
"prettier --write"
],
"packages/**/tests/**/*.ts": [
"prettier --write"
],
"!(packages/**/dist/)*.ts": [
"prettier --write"
],
"!(packages/**/node_modules/)*.ts": [
"prettier --write"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"nyc": {
"check-coverage": false,
"reporter": [
"html",
"lcov",
"text",
"text-summary"
],
"report-dir": "coverage"
}
}