Skip to content

Commit 5ca3fb9

Browse files
authored
all: migrate to pnpm workspace (#6109)
1 parent 290ab2d commit 5ca3fb9

File tree

65 files changed

+6919
-15803
lines changed

Some content is hidden

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

65 files changed

+6919
-15803
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: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +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
2825

29-
# Built solidity contracts.
30-
/tests/**/bin
31-
/tests/**/truffle_output
26+
# Node dependencies
27+
node_modules/
3228

3329
# Docker volumes and debug logs
3430
.postgres

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

@@ -56,7 +56,7 @@ cargo test <specific_test_name>
5656
**Prerequisites:**
5757
1. PostgreSQL running on localhost:5432 (with initialised `graph-test` database)
5858
2. IPFS running on localhost:5001
59-
3. Yarn (v1)
59+
3. PNPM
6060
4. Foundry (for smart contract compilation)
6161
5. Environment variable `THEGRAPH_STORE_POSTGRES_DIESEL_URL` set
6262

@@ -88,7 +88,7 @@ cargo test -p graph-tests --test runner_tests test_name -- --nocapture
8888
1. PostgreSQL running on localhost:3011 (with initialised `graph-node` database)
8989
2. IPFS running on localhost:3001
9090
3. Anvil running on localhost:3021
91-
4. Yarn (v1)
91+
4. PNPM
9292
5. Foundry (for smart contract compilation)
9393
6. **Built graph-node binary** (integration tests require the compiled binary)
9494

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": "[email protected]+sha512.ad27a79641b49c3e481a16a805baa71817a04bbe06a38d17e60e2eaee83f6a146c6a688125f5792e48dd5ba30e7da52a5cda4c3992b9ccf333f9ce223af84748"
4+
}

0 commit comments

Comments
 (0)