-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
81 lines (81 loc) · 3.54 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
{
"name": "beefy-cowllector",
"version": "2.0.0",
"description": "The bot to harvest all vaults.",
"license": "MIT",
"private": true,
"engines": {
"node": "20.x",
"yarn": "1.x"
},
"scripts": {
"test": "yarn --silent test:all",
"heroku:harvest": "node ./dist/script/harvest.js -c all",
"heroku:unwrap": "node ./dist/script/unwrap.js -c all",
"heroku:revenue": "node ./dist/script/revenue-bridge-harvest.js -c all",
"heroku:db:migrate": "node ./dist/script/db/migrate.js",
"heroku:db:apply-retention": "node ./dist/script/db/apply-retention.js",
"precommit": "yarn --silent lint:format && yarn --silent test",
"build": "tsc",
"deploy": "git checkout prod && git rebase main && git push && git checkout -",
"infra:start": "docker compose -p dev -f docker-compose.dev.yml up -d",
"infra:logs": "docker compose -p dev -f docker-compose.dev.yml logs -f",
"infra:stop": "docker compose -p dev -f docker-compose.dev.yml down",
"pg:console": "docker exec -it dev-postgres-1 psql -U beefy_cowllector",
"db:migrate": "TS_NODE_FILES=true TS_NODE_TRANSPILE_ONLY=true ts-node ./src/script/db/migrate.ts",
"db:apply-retention": "TS_NODE_FILES=true TS_NODE_TRANSPILE_ONLY=true ts-node ./src/script/db/apply-retention.ts",
"lint:format": "yarn --silent lint:format:solidity && yarn --silent lint:format:typescript",
"lint:format:solidity": "forge fmt",
"lint:format:typescript": "biome check --write --unsafe ./src",
"test:unit": "yarn --silent test:unit:typescript && yarn --silent test:unit:solidity",
"test:unit:typescript": "DATABASE_URL=ok LOG_LEVEL=error TZ=UTC jest --maxConcurrency=1 2>&1",
"test:unit:solidity": "NO_COLOR=1 forge test --match-contract BeefyHarvestLensTest -vvv",
"test:lint": "yarn --silent test:lint:typescript && yarn --silent test:lint:solidity",
"test:lint:typescript": "biome check ./src",
"test:lint:solidity": "NO_COLOR=1 forge fmt --check",
"test:ts": "tsc --noEmit",
"test:outdated": "ncu",
"test:unused-exports": "ts-unused-exports ./tsconfig.json --showLineNumber",
"test:all": "yarn --silent test:lint && yarn --silent test:ts && yarn --silent test:unit && yarn --silent test:unused-exports"
},
"dependencies": {
"@openzeppelin/contracts": "^4.9.3",
"async-lock": "^1.4.0",
"axios": "^1.5.0",
"blockchain-addressbook": "^0.47.54",
"dotenv": "^16.3.1",
"lodash": "^4.17.21",
"pg": "^8.11.3",
"pg-connection-string": "^2.6.2",
"pg-format": "^1.0.4",
"pino": "^8.15.1",
"table": "^6.8.1",
"viem": "^2.21.34",
"yaml": "^2.3.2",
"yargs": "^17.7.2"
},
"devDependencies": {
"@biomejs/biome": "1.8.2",
"@types/async-lock": "^1.4.0",
"@types/jest": "^29.5.4",
"@types/lodash": "^4.14.198",
"@types/node": "^20.6.0",
"@types/pg": "^8.10.2",
"@types/pg-format": "^1.0.2",
"@types/yargs": "^17.0.24",
"husky": "^8.0.3",
"jest": "^29.7.0",
"lint-staged": "^14.0.1",
"npm-check-updates": "^16.14.2",
"pino-pretty": "^10.2.0",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"ts-unused-exports": "^10.0.1",
"typescript": "^5.4.5"
},
"lint-staged": {
"*.{js,ts,json}": "biome format --write ./src",
"*.sol": "forge fmt"
},
"packageManager": "[email protected]"
}