@graphprotocol/graph-cli 0.37.3-alpha-20230112205341-caa8660 → 0.37.3-alpha-20230112211157-1ff22ed
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -2
- package/dist/commands/init.js +2 -3
- package/package.json +2 -1
- package/src/commands/init.ts +2 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
# @graphprotocol/graph-cli
|
|
2
2
|
|
|
3
|
-
## 0.37.3-alpha-
|
|
3
|
+
## 0.37.3-alpha-20230112211157-1ff22ed
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- [#1020](https://github.com/graphprotocol/graph-cli/pull/1020) [`6184688`](https://github.com/graphprotocol/graph-cli/commit/6184688d7e6efaae49a722410befd28da0af87b0) Thanks [@saihaj](https://github.com/saihaj)! - dependencies updates:
|
|
8
8
|
- Updated dependency [`immutable@4.2.1` ↗︎](https://www.npmjs.com/package/immutable/v/4.2.1) (from `3.8.2`, in `dependencies`)
|
|
9
|
-
- Removed dependency [`dockerode@2.5.8` ↗︎](https://www.npmjs.com/package/dockerode/v/2.5.8) (from `dependencies`)
|
|
10
9
|
|
|
11
10
|
## 0.37.2
|
|
12
11
|
|
package/dist/commands/init.js
CHANGED
|
@@ -380,8 +380,7 @@ exports.default = {
|
|
|
380
380
|
const ABI = protocolInstance.getABI();
|
|
381
381
|
if (abi) {
|
|
382
382
|
try {
|
|
383
|
-
|
|
384
|
-
abi = loadAbiFromFile(ABI, abi);
|
|
383
|
+
abi = loadAbiFromFile(toolbox, ABI, abi);
|
|
385
384
|
}
|
|
386
385
|
catch (e) {
|
|
387
386
|
print.error(`Failed to load ABI: ${e.message}`);
|
|
@@ -615,7 +614,7 @@ const initSubgraphFromExample = async (toolbox, { fromExample, allowSimpleName,
|
|
|
615
614
|
delete pkgJson['devDependencies']['@graphprotocol/graph-cli'];
|
|
616
615
|
}
|
|
617
616
|
// Write package.json
|
|
618
|
-
|
|
617
|
+
filesystem.write(pkgJsonFilename, pkgJson, { jsonIndent: 2 });
|
|
619
618
|
return true;
|
|
620
619
|
}
|
|
621
620
|
catch (e) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphprotocol/graph-cli",
|
|
3
|
-
"version": "0.37.3-alpha-
|
|
3
|
+
"version": "0.37.3-alpha-20230112211157-1ff22ed",
|
|
4
4
|
"license": "(Apache-2.0 OR MIT)",
|
|
5
5
|
"description": "CLI for building for and deploying to The Graph",
|
|
6
6
|
"main": "dist/cli.js",
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"chokidar": "3.5.1",
|
|
16
16
|
"debug": "4.3.1",
|
|
17
17
|
"docker-compose": "0.23.4",
|
|
18
|
+
"dockerode": "2.5.8",
|
|
18
19
|
"fs-extra": "9.0.0",
|
|
19
20
|
"glob": "7.1.6",
|
|
20
21
|
"gluegun": "https://github.com/edgeandnode/gluegun#v4.3.1-pin-colors-dep",
|
package/src/commands/init.ts
CHANGED
|
@@ -461,8 +461,7 @@ export default {
|
|
|
461
461
|
const ABI = protocolInstance.getABI()
|
|
462
462
|
if (abi) {
|
|
463
463
|
try {
|
|
464
|
-
|
|
465
|
-
abi = loadAbiFromFile(ABI, abi)
|
|
464
|
+
abi = loadAbiFromFile(toolbox, ABI, abi)
|
|
466
465
|
} catch (e) {
|
|
467
466
|
print.error(`Failed to load ABI: ${e.message}`)
|
|
468
467
|
process.exitCode = 1
|
|
@@ -814,7 +813,7 @@ const initSubgraphFromExample = async (
|
|
|
814
813
|
}
|
|
815
814
|
|
|
816
815
|
// Write package.json
|
|
817
|
-
|
|
816
|
+
filesystem.write(pkgJsonFilename, pkgJson, { jsonIndent: 2 })
|
|
818
817
|
return true
|
|
819
818
|
} catch (e) {
|
|
820
819
|
print.error(`Failed to preconfigure the subgraph: ${e}`)
|