Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

Commit

Permalink
Upgrade deps and fix compile (#21)
Browse files Browse the repository at this point in the history
* Update deps

* Bump deps

* Fix

* Update lerna and fix build

* Fix CI

* Fix version

* Bump deps

---------

Co-authored-by: nada <[email protected]>
  • Loading branch information
fewensa and furoxr authored Aug 1, 2023
1 parent 8ff2cb8 commit 4466eb3
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ jobs:

- name: Check build
run: |
npm run boot
npm run build:all
yarn install
yarn build:all
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
FROM node:18-alpine3.15
FROM node:20-alpine
COPY . /opt/alarmmgr
RUN cd /opt/alarmmgr && \
npm install && \
npm run boot && \
npm run build:all
yarn install && \
yarn build:all
WORKDIR /opt/alarmmgr
ENTRYPOINT ["/opt/alarmmgr/alarmmgr.sh"]
3 changes: 1 addition & 2 deletions lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@
],
"version": "0.0.1",
"npmClient": "yarn",
"useNx": true,
"useWorkspaces": true
"useNx": true
}
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,13 @@
"notifications/*"
],
"scripts": {
"boot": "lerna bootstrap",
"start": "lerna run start --scope alarmmgr-bin --",
"package": "lerna run package --scope alarmmgr-bin",
"build:all": "lerna run build",
"test:all": "lerna run test"
},
"devDependencies": {
"lerna": "^5.5.2",
"nx": "^14.4.3"
"lerna": "^7.1.4",
"nx": "^16.6.0"
}
}
3 changes: 1 addition & 2 deletions plugins/conn-substrate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"dependencies": {
"alarmmgr-logger": "0.0.1",
"alarmmgr-types": "0.0.1",
"@darwinia/api-options": "^2.8.10",
"@polkadot/api": "^9.4.2"
"@polkadot/api": "^10"
}
}
2 changes: 1 addition & 1 deletion probes/bridge-e2e/src/substrate_index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class SubstrateIndex {
throw new Error(response.statusText);
}
logger.trace(`[IndexResponse] ${await response.clone().text()}`)
const data: R = await response.json();
const data: R = (await response.json()) as any;
return data;
}
}
Expand Down
1 change: 0 additions & 1 deletion probes/bridge-s2s/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"alarmmgr-probe-traits": "0.0.1",
"alarmmgr-subquery": "0.0.1",
"alarmmgr-plugin-conn-substrate": "0.0.1",
"@darwinia/api-options": "^2.8.10",
"@polkadot/api": "^10",
"bignumber.js": "^9.1.0",
"await-timeout": "^1.1.1"
Expand Down
1 change: 0 additions & 1 deletion probes/chain-substrate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"alarmmgr-types": "0.0.1",
"alarmmgr-probe-traits": "0.0.1",
"alarmmgr-plugin-conn-substrate": "0.0.1",
"@darwinia/api-options": "^2.8.10",
"@polkadot/api": "^10",
"await-timeout": "^1.1.1"
}
Expand Down

0 comments on commit 4466eb3

Please sign in to comment.