Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix script cwd #201

Merged
merged 3 commits into from
Feb 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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