Skip to content

Commit

Permalink
build: upgrade package version to 1.2.0
Browse files Browse the repository at this point in the history
build: move hardhat ts config to "tsconfig.dev.json" file
build: switch node version to "v20" in NVM config
build: use "node:20-alpine" instead of "node:16-slim" in Docker config
build: use "tsconfig.dev.json" for hardhat script in "package.json" file
build: remove superfluous network config from test script in "package.json" file
  • Loading branch information
scorpion9979 committed Feb 9, 2024
1 parent bda63bf commit 434fc68
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16.19.1
v20
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=linux/amd64 node:16-slim AS base
FROM --platform=linux/amd64 node:20-alpine AS base
LABEL author="scorpion9979 <ahmed.i.tawefeeq@protonmail.com>"
WORKDIR /liquidator

Expand Down
2 changes: 1 addition & 1 deletion deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ spec:
secretKeyRef:
name: hifi-liquidator-js-secret
key: wallet-seed
image: us-west3-docker.pkg.dev/liquidation-bots/hifi/hifi-liquidator-js:1.1.4
image: us-west3-docker.pkg.dev/liquidation-bots/hifi/hifi-liquidator-js:1.2.0
name: hifi-liquidator-js
resources:
limits:
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@hifi/liquidator-js",
"description": "Utility for automatically liquidating underwater accounts in Hifi",
"version": "1.1.4",
"version": "1.2.0",
"author": {
"name": "Hifi",
"email": "contact@hifi.finance",
Expand Down Expand Up @@ -53,7 +53,7 @@
"prettier": "prettier --config ./.prettierrc --write \"**/*.{js,json,md,ts}\"",
"prettier:check": "prettier --check --config ./.prettierrc \"**/*.{js,json,md,ts}\"",
"start": "ts-node src",
"test": "hardhat test --network hardhat"
"test": "hardhat test --tsconfig tsconfig.dev.json"
},
"dependencies": {
"@hifi/flash-swap": "^1.13.0",
Expand Down
5 changes: 5 additions & 0 deletions tsconfig.dev.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": "./tsconfig.json",
"files": ["./hardhat.config.ts"],
"include": ["test/**/*"]
}
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@
"target": "es6"
},
"exclude": ["node_modules"],
"files": ["./hardhat.config.ts"],
"include": ["src/**/*", "test/**/*"]
"include": ["src/**/*"]
}

0 comments on commit 434fc68

Please sign in to comment.