Skip to content

Commit 3295954

Browse files
committed
fix source skip condition
1 parent 1b69b9e commit 3295954

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/cli/src/commands/init.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,8 @@ async function processInitForm(
560560
type: 'input',
561561
name: 'source',
562562
message: sourceMessage,
563-
skip: () => !isComposedSubgraph,
563+
skip: () =>
564+
initFromExample !== undefined || !protocolInstance.hasContract() || isSubstreams,
564565
initial: initContract,
565566
validate: async (value: string) => {
566567
if (isComposedSubgraph) {

0 commit comments

Comments
 (0)