From d4f392a8b1f9407de87587e39dabc3aef9ad9018 Mon Sep 17 00:00:00 2001 From: Turadg Aleahmad Date: Wed, 24 Jan 2024 17:15:00 -0800 Subject: [PATCH] build: scripts compatible with pnpm there's no .bin dir anymore --- .github/workflows/ci.yml | 4 ++-- README.md | 6 +++--- package.json | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d1a35e74..cee51b5a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 diff --git a/README.md b/README.md index 16f08947..c50f9d7b 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/package.json b/package.json index bc109770..01f39ae2 100644 --- a/package.json +++ b/package.json @@ -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": {