From f7c47a35651ac3259281f3cde34bb721edf7acb3 Mon Sep 17 00:00:00 2001 From: RostiMelk Date: Fri, 21 Jun 2024 16:07:52 +0200 Subject: [PATCH] fix: remove trailing commas when sanitizing --- packages/@sanity/cli/src/util/journeyConfig.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/@sanity/cli/src/util/journeyConfig.ts b/packages/@sanity/cli/src/util/journeyConfig.ts index 979d722b275..9a12c724417 100644 --- a/packages/@sanity/cli/src/util/journeyConfig.ts +++ b/packages/@sanity/cli/src/util/journeyConfig.ts @@ -183,6 +183,7 @@ async function fetchJourneySchema(schemaUrl: string): Promise { const serialised = wrapSchemaTypeInHelpers(schemaType) + console.log('serialised', serialised) const imports = getImports(serialised) const prettifiedSchemaType = await format(serialised, { parser: 'typescript',