-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathpackage.json
100 lines (100 loc) · 3.42 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
{
"name": "faucet",
"version": "1.1.2",
"description": "",
"main": "build/start.js",
"scripts": {
"build": "tsc",
"build:docker": "docker build -t polkadot-testnet-faucet .",
"dev": "concurrently \"tsc -w\" \"node --watch -r dotenv/config ./build/src/start.js\"",
"dev:db": "docker run -e 'POSTGRESQL_EXTRA_FLAGS=-c log_statement=all' -e 'POSTGRESQL_PASSWORD=postgres' -e 'POSTGRESQL_DATABASE=faucet' -v \"$(pwd)/data:/bitnami/postgresql\" -p 5432:5432 bitnami/postgresql:15",
"fix": "yarn lint:fix && yarn format:fix",
"format": "npx prettier ./src ./client/src ./client/tests --check",
"format:fix": "npx prettier ./src ./client/src ./client/tests --write",
"generate:papi": "papi generate",
"generate:types": "echo \"declare const schema: $(cat env.faucet.config.json); export default schema;\" > env.faucet.config.json.d.ts",
"lint": "npx eslint ./src/ ./client/src ./client/tests --ext .js,.ts,.svelte",
"lint:fix": "npx eslint ./src/ ./client/src ./client/tests --ext .js,.ts,.svelte --fix",
"migrations:generate": "typeorm migration:generate -d build/src/db/dataSource.js",
"migrations:run": "typeorm migration:run -d build/src/db/dataSource.js",
"postinstall": "yarn generate:types && yarn generate:papi",
"start": "node ./build/src/start.js",
"e2e:zombienet": "rm -rf e2e/zombienet && npx --yes @zombienet/[email protected] --provider native --dir e2e/zombienet spawn e2e/zombienet.native.toml",
"test": "jest",
"test:e2e": "jest -c jest.e2e.config.js --runInBand --forceExit",
"typecheck": "tsc --noEmit"
},
"imports": {
"#src/*": "./src/*.js"
},
"author": "",
"license": "ISC",
"lint-staged": {
"./src/**/*.js": [
"npx prettier --write",
"npx eslint --fix"
],
"./src/**/*.ts": [
"npx prettier --write",
"npx eslint --fix"
],
"./client/**/*.js": [
"cd client && npx prettier --write",
"cd client && npx eslint --fix"
],
"./client/**/*.ts": [
"cd client && npx prettier --write",
"cd client && npx eslint --fix"
]
},
"simple-git-hooks": {
"pre-commit": "yarn lint-staged"
},
"dependencies": {
"@eng-automation/js": "^2.1.0",
"@noble/hashes": "^1.5.0",
"@polkadot-api/descriptors": "portal:.papi/descriptors",
"@polkadot-labs/hdkd": "^0.0.6",
"@polkadot-labs/hdkd-helpers": "^0.0.6",
"@types/cors": "^2.8.13",
"axios": "^1.6.0",
"bigfloat.js": "^3.0.1",
"body-parser": "^1.20.0",
"bs58": "^5.0.0",
"confmgr": "^1.0.8",
"cors": "^2.8.5",
"express": "4.19.2",
"matrix-js-sdk": "^26.1.0",
"pg": "^8.11.2",
"polkadot-api": "^1.6.5",
"prom-client": "^14.2.0",
"reflect-metadata": "^0.1.13",
"request": "^2.88.2",
"typeorm": "^0.3.17"
},
"devDependencies": {
"@eng-automation/js-style": "^3.1.0",
"@eng-automation/testing": "^1.5.1",
"@types/body-parser": "^1.19.2",
"@types/express": "^4.17.13",
"@types/jest": "^29.5.12",
"@types/node": "^20",
"@types/request": "^2.48.8",
"@types/supertest": "^2.0.12",
"concurrently": "^8.2.2",
"eslint-plugin-security": "^1.5.0",
"jest": "^29.7.0",
"joi": "^17.13.1",
"lint-staged": "^12.3.8",
"rxjs": "^7.8.1",
"simple-git-hooks": "^2.7.0",
"supertest": "^6.3.3",
"testcontainers": "v10.8.1",
"ts-jest": "^29.1.4",
"typescript": "^5.4.5"
},
"engines": {
"node": "^22"
},
"packageManager": "[email protected]"
}