Skip to content

Commit

Permalink
build: scripts compatible with pnpm
Browse files Browse the repository at this point in the history
there's no .bin dir anymore
  • Loading branch information
turadg committed Jan 25, 2024
1 parent 4fd3caa commit e4c4791
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ jobs:
- run: df -h

- name: DEBUG build non-test images tests
run: node_modules/.bin/synthetic-chain build
run: yarn build

- run: docker system df
- run: docker buildx du --verbose
Expand All @@ -123,7 +123,7 @@ jobs:
# Test before pushing the images.
- name: Build and run proposal tests
if: ${{ matrix.platform == env.X86_PLATFORM }}
run: node_modules/.bin/synthetic-chain test
run: yarn test

- run: docker system df
- run: docker buildx du --verbose
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,21 +63,21 @@ A known issue is that `yarn synthetic-chain` files with `Unknown file extension
To build the test images,

```
node_modules/.bin/synthetic-chain build
tsx packages/synthetic-chain build
```

To build the test images for particular proposals,

```
# build just upgrades
node_modules/.bin/synthetic-chain build --match upgrade
tsx packages/synthetic-chain build --match upgrade
```

To run the tests for particular proposals,

```
# build just upgrades
node_modules/.bin/synthetic-chain test --match upgrade
tsx packages/synthetic-chain test --match upgrade
```

## Debugging
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"packages/*"
],
"scripts": {
"build": "echo Use synthetic-chain to build proposal images",
"test": "echo Use synthetic-chain to test proposal images",
"build": "tsx packages/synthetic-chain build",
"test": "tsx packages/synthetic-chain test",
"format": "prettier --write ."
},
"dependencies": {
Expand Down

0 comments on commit e4c4791

Please sign in to comment.