Skip to content

Commit

Permalink
Fix aptos cli issue on cicd
Browse files Browse the repository at this point in the history
  • Loading branch information
ArmanMazdaee committed Sep 26, 2024
1 parent 84c3a5b commit 14eb27e
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 8 deletions.
12 changes: 10 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions packages/smart-contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@
"private": true,
"type": "module",
"scripts": {
"build": "aptos move compile --move-2 --named-addresses zk_deck=0x420,jeton=0x420",
"test": "aptos move test --move-2 --named-addresses zk_deck=0x420,jeton=0x420"
"move:build": "aptos move compile --move-2 --named-addresses zk_deck=0x420,jeton=0x420",
"move:test": "aptos move test --move-2 --named-addresses zk_deck=0x420,jeton=0x420"
},
"devDependencies": {
"aptos": "^1.21.0"
"@aptos-labs/aptos-cli": "^0.2.0"
},
"dependencies": {
"@jeton/zk-deck": "^0.0.0"
}
}
9 changes: 9 additions & 0 deletions packages/smart-contracts/turbo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"move:build": {
"inputs": ["sources/**", "contracts/Move.toml"],
"outputs": ["build/**"]
},
"move:test": {
"inputs": ["sources/**", "contracts/Move.toml"]
}
}
2 changes: 1 addition & 1 deletion packages/zk-deck/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@
"mocha:test": "mocha src/**/*.test.ts"
},
"devDependencies": {
"@aptos-labs/aptos-cli": "^0.2.0",
"@jeton/typescript-config": "^0.0.0",
"@types/chai": "^4.3.18",
"@types/chai-as-promised": "^8.0.0",
"@types/mocha": "^10.0.7",
"@types/snarkjs": "^0.7.8",
"aptos": "^1.21.0",
"chai": "^5.1.1",
"chai-as-promised": "^8.0.0",
"circomlib": "^2.0.5",
Expand Down
4 changes: 2 additions & 2 deletions packages/zk-deck/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"extends": ["//"],
"tasks": {
"build": {
"dependsOn": ["circom:build", "typescript:build", "move:build"]
"dependsOn": ["circom:build", "typescript:build"]
},
"test": {
"dependsOn": ["mocha:test", "move:test"]
"dependsOn": ["mocha:test"]
},
"check": {
"dependsOn": ["circom:check"]
Expand Down

0 comments on commit 14eb27e

Please sign in to comment.