@graphprotocol/graph-cli 0.41.0 → 0.41.1

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,5 +1,14 @@
1
1
  # @graphprotocol/graph-cli
2
2
 
3
+ ## 0.41.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1077](https://github.com/graphprotocol/graph-tooling/pull/1077)
8
+ [`7efc38b`](https://github.com/graphprotocol/graph-tooling/commit/7efc38ba68dad1e7b09934f9b6b4e5566c298bc1)
9
+ Thanks [@enisdenjo](https://github.com/enisdenjo)! - Ask for product if missing when using deploy
10
+ command
11
+
3
12
  ## 0.41.0
4
13
 
5
14
  ### Minor Changes
@@ -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
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.41.0",
2
+ "version": "0.41.1",
3
3
  "commands": {
4
4
  "add": {
5
5
  "id": "add",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphprotocol/graph-cli",
3
- "version": "0.41.0",
3
+ "version": "0.41.1",
4
4
  "description": "CLI for building for and deploying to The Graph",
5
5
  "license": "(Apache-2.0 OR MIT)",
6
6
  "engines": {