Skip to content

Commit 259c167

Browse files
committed
all: switch to pnpm workspace
1 parent 8195721 commit 259c167

File tree

53 files changed

+14576
-15229
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+14576
-15229
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,17 @@ jobs:
8989
- name: Checkout sources
9090
uses: actions/checkout@v4
9191

92-
- name: Install Node 20
92+
- name: Install pnpm
93+
uses: pnpm/action-setup@v4
94+
95+
- name: Install Node.js
9396
uses: actions/setup-node@v4
9497
with:
95-
node-version: "20"
96-
cache: yarn
97-
cache-dependency-path: "tests/runner-tests/yarn.lock"
98+
node-version: 20
99+
cache: pnpm
100+
101+
- name: Install Node.js dependencies
102+
run: pnpm install
98103

99104
- uses: Swatinem/rust-cache@v2
100105

@@ -148,12 +153,17 @@ jobs:
148153
uses: actions/checkout@v4
149154
- uses: Swatinem/rust-cache@v2
150155

151-
- name: Install Node 20
156+
- name: Install pnpm
157+
uses: pnpm/action-setup@v4
158+
159+
- name: Install Node.js
152160
uses: actions/setup-node@v4
153161
with:
154-
node-version: "20"
155-
cache: yarn
156-
cache-dependency-path: "tests/integration-tests/yarn.lock"
162+
node-version: 20
163+
cache: pnpm
164+
165+
- name: Install Node.js dependencies
166+
run: pnpm install
157167

158168
- name: Install lld and jq
159169
run: sudo apt-get install -y lld jq protobuf-compiler

.github/workflows/code-coverage.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,19 @@ jobs:
4141
steps:
4242
- uses: actions/checkout@v4
4343
- uses: Swatinem/rust-cache@v2
44-
- name: Install Node 14
44+
45+
- name: Install pnpm
46+
uses: pnpm/action-setup@v4
47+
48+
- name: Install Node.js
4549
uses: actions/setup-node@v4
4650
with:
47-
node-version: "14"
48-
cache: yarn
49-
cache-dependency-path: "tests/integration-tests/yarn.lock"
51+
node-version: 20
52+
cache: pnpm
53+
54+
- name: Install Node.js dependencies
55+
run: pnpm install
56+
5057
- name: Install lld
5158
run: sudo apt-get install -y lld jq protobuf-compiler
5259
- uses: actions-rs/cargo@v1

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ lcov.info
2222

2323
/tests/**/build
2424
/tests/**/generated
25-
/tests/**/node_modules
26-
/tests/**/yarn-error.log
27-
/tests/**/pnpm-lock.yaml
25+
26+
# Node dependencies
27+
node_modules/
2828

2929
# Built solidity contracts.
3030
/tests/**/bin

CLAUDE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Unit tests are inlined with source code.
2626
**Prerequisites:**
2727
1. PostgreSQL running on localhost:5432 (with initialised `graph-test` database)
2828
2. IPFS running on localhost:5001
29-
3. Yarn (v1)
29+
3. PNPM
3030
4. Foundry (for smart contract compilation)
3131
5. Environment variable `THEGRAPH_STORE_POSTGRES_DIESEL_URL` set
3232

@@ -50,7 +50,7 @@ cargo test <specific_test_name>
5050
**Prerequisites:**
5151
1. PostgreSQL running on localhost:5432 (with initialised `graph-test` database)
5252
2. IPFS running on localhost:5001
53-
3. Yarn (v1)
53+
3. PNPM
5454
4. Foundry (for smart contract compilation)
5555
5. Environment variable `THEGRAPH_STORE_POSTGRES_DIESEL_URL` set
5656

@@ -77,7 +77,7 @@ cargo test -p graph-tests --test runner_tests test_name -- --nocapture
7777
1. PostgreSQL running on localhost:3011 (with initialised `graph-node` database)
7878
2. IPFS running on localhost:3001
7979
3. Anvil running on localhost:3021
80-
4. Yarn (v1)
80+
4. PNPM
8181
5. Foundry (for smart contract compilation)
8282

8383
The environment dependencies and environment setup are operated by the human.

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"private": true,
3+
"packageManager": "pnpm@10.14.0+sha512.ad27a79641b49c3e481a16a805baa71817a04bbe06a38d17e60e2eaee83f6a146c6a688125f5792e48dd5ba30e7da52a5cda4c3992b9ccf333f9ce223af84748"
4+
}

0 commit comments

Comments
 (0)