Skip to content

Commit

Permalink
fix script cwd (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
xlc authored Feb 22, 2023
1 parent f557879 commit 809d528
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
4 changes: 2 additions & 2 deletions e2e/scripts/sidecar-chopsticks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ rm -rf substrate-api-sidecar
git clone https://github.com/paritytech/substrate-api-sidecar.git

# run chopsticks node
yarn workspace @acala-network/chopsticks run start dev --endpoint wss://rpc.polkadot.io --port 8011 & POLKADOT_PID=$!
yarn workspace @acala-network/chopsticks run start dev --endpoint wss://statemint-rpc.polkadot.io --port 8012 & STATEMINT_PID=$!
yarn script:start dev --endpoint wss://rpc.polkadot.io --port 8011 & POLKADOT_PID=$!
yarn script:start dev --endpoint wss://statemint-rpc.polkadot.io --port 8012 & STATEMINT_PID=$!

# run tests
(cd substrate-api-sidecar && \
Expand Down
8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,8 @@
"check": "cd executor && cargo check --locked",
"test": "vitest run",
"test:watch": "vitest",
"start": "yarn workspace @acala-network/chopsticks run start",
"dev": "yarn workspace @acala-network/chopsticks run dev",
"dev:karura": "yarn workspace @acala-network/chopsticks run dev:karura",
"dev:acala": "yarn workspace @acala-network/chopsticks run dev:acala",
"dev:moonriver": "yarn workspace @acala-network/chopsticks run dev:moonriver",
"dev:moonbeam": "yarn workspace @acala-network/chopsticks run dev:moonbeam"
"start": "yarn script:start",
"dev": "yarn script:run"
},
"engines": {
"node": ">=v14"
Expand Down
4 changes: 2 additions & 2 deletions packages/chopsticks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"build": "rm -rf lib && tsc -p ./tsconfig.json",
"test": "vitest run",
"test:watch": "vitest",
"start": "ts-node --transpile-only src/cli.ts",
"dev": "LOG_LEVEL=trace ts-node-dev --transpile-only --inspect --notify=false src/cli.ts -- dev --config=../../configs/dev.yml",
"script:start": "cd ../..; ts-node packages/chopsticks/src/cli.ts",
"script:run": "LOG_LEVEL=trace ts-node-dev --transpile-only --inspect --notify=false src/cli.ts -- dev --config=../../configs/dev.yml",
"dev:karura": "ts-node-dev --transpile-only --inspect --notify=false src/cli.ts -- dev --config=../../configs/karura.yml",
"dev:acala": "ts-node-dev --transpile-only --inspect --notify=false src/cli.ts -- dev --config=../../configs/acala.yml",
"dev:moonriver": "ts-node-dev --transpile-only --inspect --notify=false src/cli.ts -- dev --config=../../configs/moonriver.yml",
Expand Down

0 comments on commit 809d528

Please sign in to comment.