@graphprotocol/graph-cli 0.41.0-alpha-20230220202916-954959f → 0.41.0-alpha-20230221140937-bb75c97
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @graphprotocol/graph-cli
|
|
2
2
|
|
|
3
|
-
## 0.41.0-alpha-
|
|
3
|
+
## 0.41.0-alpha-20230221140937-bb75c97
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -13,14 +13,9 @@
|
|
|
13
13
|
- [#1055](https://github.com/graphprotocol/graph-tooling/pull/1055)
|
|
14
14
|
[`044cd92`](https://github.com/graphprotocol/graph-tooling/commit/044cd92d0ceb9628c7f7fbe3627a09b867710247)
|
|
15
15
|
Thanks [@enisdenjo](https://github.com/enisdenjo)! - dependencies updates:
|
|
16
|
-
|
|
17
16
|
- Added dependency [`@oclif/core@2.0.7` ↗︎](https://www.npmjs.com/package/@oclif/core/v/2.0.7) (to
|
|
18
17
|
`dependencies`)
|
|
19
18
|
|
|
20
|
-
- [#1074](https://github.com/graphprotocol/graph-tooling/pull/1074)
|
|
21
|
-
[`e84d1e8`](https://github.com/graphprotocol/graph-tooling/commit/e84d1e873d9b2a8967c5fe2a85fce48b2caeb75f)
|
|
22
|
-
Thanks [@saihaj](https://github.com/saihaj)! - update GH issues link for error message
|
|
23
|
-
|
|
24
19
|
## 0.40.0
|
|
25
20
|
|
|
26
21
|
### Minor Changes
|
package/dist/commands/deploy.js
CHANGED
|
@@ -48,7 +48,13 @@ const headersFlag = core_1.Flags.custom({
|
|
|
48
48
|
});
|
|
49
49
|
class DeployCommand extends core_1.Command {
|
|
50
50
|
async run() {
|
|
51
|
-
const { args: { 'subgraph-name': subgraphName, 'subgraph-manifest': manifest }, flags: { product, studio, 'deploy-key': deployKeyFlag, 'access-token': accessToken, 'version-label': versionLabelFlag, ipfs, headers, node: nodeFlag, 'output-dir': outputDir, 'skip-migrations': skipMigrations, watch, 'debug-fork': debugFork, network, 'network-file': networkFile, }, } = await this.parse(DeployCommand);
|
|
51
|
+
const { args: { 'subgraph-name': subgraphName, 'subgraph-manifest': manifest }, flags: { product: productFlag, studio, 'deploy-key': deployKeyFlag, 'access-token': accessToken, 'version-label': versionLabelFlag, ipfs, headers, node: nodeFlag, 'output-dir': outputDir, 'skip-migrations': skipMigrations, watch, 'debug-fork': debugFork, network, 'network-file': networkFile, }, } = await this.parse(DeployCommand);
|
|
52
|
+
const product = studio
|
|
53
|
+
? 'subgraph-studio'
|
|
54
|
+
: productFlag ||
|
|
55
|
+
(await core_1.ux.prompt('Which product to deploy for?', {
|
|
56
|
+
required: true,
|
|
57
|
+
}));
|
|
52
58
|
try {
|
|
53
59
|
const dataSourcesAndTemplates = await DataSourcesExtractor.fromFilePath(manifest);
|
|
54
60
|
for (const { network } of dataSourcesAndTemplates) {
|
|
@@ -61,10 +67,7 @@ class DeployCommand extends core_1.Command {
|
|
|
61
67
|
const { node } = (0, node_1.chooseNodeUrl)({
|
|
62
68
|
product,
|
|
63
69
|
studio,
|
|
64
|
-
node: nodeFlag
|
|
65
|
-
(await core_1.ux.prompt('Which product to deploy for?', {
|
|
66
|
-
required: true,
|
|
67
|
-
})),
|
|
70
|
+
node: nodeFlag,
|
|
68
71
|
});
|
|
69
72
|
if (!node) {
|
|
70
73
|
// shouldn't happen, but we do the check to satisfy TS
|
package/dist/compiler/asc.js
CHANGED
|
@@ -30,7 +30,7 @@ const createExitHandler = (inputFile) => () => {
|
|
|
30
30
|
Suggestion: try to comment the whole file and uncomment it little by little while re-running the graph-cli until you isolate the line where the problem happens.
|
|
31
31
|
Also, please contact us so we can make the CLI better by handling errors like this. You can reach out in any of these links:
|
|
32
32
|
- Discord channel: https://discord.gg/eM8CA6WA9r
|
|
33
|
-
- Github issues: https://github.com/graphprotocol/graph-
|
|
33
|
+
- Github issues: https://github.com/graphprotocol/graph-cli/issues`);
|
|
34
34
|
};
|
|
35
35
|
const setupExitHandler = (exitHandler) => process.addListener('exit', exitHandler);
|
|
36
36
|
const removeExitHandler = (exitHandler) => process.removeListener('exit', exitHandler);
|
package/dist/protocols/index.js
CHANGED
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.41.0-alpha-
|
|
2
|
+
"version": "0.41.0-alpha-20230221140937-bb75c97",
|
|
3
3
|
"commands": {
|
|
4
4
|
"add": {
|
|
5
5
|
"id": "add",
|
|
@@ -569,7 +569,6 @@
|
|
|
569
569
|
"optimism-kovan",
|
|
570
570
|
"aurora",
|
|
571
571
|
"aurora-testnet",
|
|
572
|
-
"base-testnet",
|
|
573
572
|
"near-mainnet",
|
|
574
573
|
"near-testnet",
|
|
575
574
|
"cosmoshub-4",
|
package/package.json
CHANGED