Skip to content

Commit 4bfb55f

Browse files
committed
feat(cli): use unified @graphprotocol/gnd package
Replace the `graph node install` GitHub-release downloader with a direct dependency on `@graphprotocol/gnd`, the unified npm wrapper now published from the graph-node repo. The wrapper declares the five platform-specific binary packages as its own optional dependencies, so `pnpm install` of graph-cli automatically resolves the correct binary for the host and exposes a `gnd` launcher on `node_modules/.bin`. The `graph node install` command, its `local-node.ts` GitHub downloader, and the `commands/node.ts` oclif command all become dead code and are removed.
1 parent d6e3d64 commit 4bfb55f

4 files changed

Lines changed: 73 additions & 490 deletions

File tree

packages/cli/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
},
3838
"dependencies": {
3939
"@float-capital/float-subgraph-uncrashable": "0.0.0-internal-testing.5",
40+
"@graphprotocol/gnd": "^0.43.0",
4041
"@oclif/core": "4.5.5",
4142
"@oclif/plugin-autocomplete": "^3.2.11",
4243
"@oclif/plugin-not-found": "^3.2.29",
@@ -46,7 +47,6 @@
4647
"assemblyscript": "0.19.23",
4748
"chokidar": "4.0.3",
4849
"debug": "4.4.3",
49-
"decompress": "^4.2.1",
5050
"docker-compose": "1.3.0",
5151
"fs-extra": "11.3.2",
5252
"glob": "11.0.3",
@@ -58,7 +58,6 @@
5858
"kubo-rpc-client": "^6.0.0",
5959
"open": "10.2.0",
6060
"prettier": "3.6.2",
61-
"progress": "^2.0.3",
6261
"semver": "7.7.3",
6362
"tmp-promise": "3.0.3",
6463
"undici": "7.16.0",
@@ -67,10 +66,8 @@
6766
},
6867
"devDependencies": {
6968
"@types/debug": "^4.1.12",
70-
"@types/decompress": "^4.2.7",
7169
"@types/fs-extra": "^11.0.4",
7270
"@types/js-yaml": "^4.0.9",
73-
"@types/progress": "^2.0.7",
7471
"@types/semver": "^7.5.8",
7572
"@types/which": "^3.0.4",
7673
"copyfiles": "^2.4.1",

packages/cli/src/command-helpers/local-node.ts

Lines changed: 0 additions & 163 deletions
This file was deleted.

packages/cli/src/commands/node.ts

Lines changed: 0 additions & 113 deletions
This file was deleted.

0 commit comments

Comments
 (0)