Skip to content

Commit

Permalink
Merge branch 'main' into saihaj/typesafety
Browse files Browse the repository at this point in the history
  • Loading branch information
saihaj committed Jun 29, 2023
2 parents a504484 + 609954d commit 0d9811d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/five-suns-lie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphprotocol/graph-cli': patch
---

ensure we use studio when loading from example
5 changes: 5 additions & 0 deletions .changeset/kind-steaks-watch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphprotocol/graph-cli': patch
---

skip validation for subgraph name when creating an example
4 changes: 3 additions & 1 deletion packages/cli/src/commands/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ export default class InitCommand extends Command {

let { node, allowSimpleName } = chooseNodeUrl({
product,
studio,
// if we are loading example, we want to ensure we are using studio
studio: studio || fromExample !== undefined,
node: nodeFlag,
allowSimpleName: allowSimpleNameFlag,
});
Expand Down Expand Up @@ -256,6 +257,7 @@ export default class InitCommand extends Command {

await initSubgraphFromExample.bind(this)(
{
allowSimpleName,
fromExample,
subgraphName: answers.subgraphName,
directory: answers.directory,
Expand Down

0 comments on commit 0d9811d

Please sign in to comment.