Skip to content

Commit ea8a1e7

Browse files
committed
fix: Remove ciclic -cli dependency
This is very important because before we would download graph-cli from the latest version to run the tests against it. However this is bad, because we could not be sure a new version passes against the tests from the example folder, since the release needed to be done before (it would go to master still pointing to the old version). This commit fixes the issue by pointing to the local graph-cli so that the example tests fail before we do a release. This also removes the necessity to bump the version everytime on these files.
1 parent 2a584ef commit ea8a1e7

File tree

4 files changed

+57
-5600
lines changed

4 files changed

+57
-5600
lines changed

examples/basic-event-handlers/package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
22
"name": "basic-event-handlers",
33
"version": "0.1.0",
44
"scripts": {
5-
"codegen": "graph codegen",
6-
"build": "graph build",
5+
"codegen": "../../bin/graph codegen",
6+
"build": "../../bin/graph build",
77
"test": "truffle test --network test",
8-
"create-test": "graph create test/basic-event-handlers --node http://127.0.0.1:18020",
9-
"deploy-test": "graph deploy test/basic-event-handlers --ipfs http://localhost:15001 --node http://127.0.0.1:18020"
8+
"create-test": "../../bin/graph create test/basic-event-handlers --node http://127.0.0.1:18020",
9+
"deploy-test": "../../bin/graph deploy test/basic-event-handlers --version-label v0.0.1 --ipfs http://localhost:15001 --node http://127.0.0.1:18020"
1010
},
1111
"devDependencies": {
12-
"@graphprotocol/graph-cli": "0.22.0-alpha.0",
1312
"@graphprotocol/graph-ts": "0.22.0-alpha.0",
1413
"apollo-fetch": "^0.7.0"
1514
},

0 commit comments

Comments
 (0)