Skip to content

Commit a70ac44

Browse files
authored
feat: do not generate any types for substreams (#1327)
* feat: do not generate any types for substreams * m * update success message
1 parent f5e4b58 commit a70ac44

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.changeset/curvy-panthers-wink.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphprotocol/graph-cli': minor
3+
---
4+
5+
do not generate types, instead show a message to user to use substreams CLI for codegen.

packages/cli/src/type-generator.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ export default class TypeGenerator {
5151
}
5252

5353
async generateTypes() {
54+
if (this.protocol.name === 'substreams') {
55+
toolbox.print.success(
56+
'Subgraph uses a substream datasource. Codegeneration is not required.',
57+
);
58+
return;
59+
}
60+
5461
try {
5562
if (!this.options.skipMigrations && this.options.subgraphManifest) {
5663
await applyMigrations({

0 commit comments

Comments
 (0)