Skip to content

Commit

Permalink
fix: remove trailing commas when sanitizing
Browse files Browse the repository at this point in the history
  • Loading branch information
RostiMelk committed Nov 22, 2024
1 parent 7888272 commit f7c47a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/@sanity/cli/src/util/journeyConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ async function fetchJourneySchema(schemaUrl: string): Promise<DocumentOrObject[]
*/
async function assembleJourneySchemaTypeFileContent(schemaType: DocumentOrObject): Promise<string> {
const serialised = wrapSchemaTypeInHelpers(schemaType)
console.log('serialised', serialised)
const imports = getImports(serialised)
const prettifiedSchemaType = await format(serialised, {
parser: 'typescript',
Expand Down

0 comments on commit f7c47a3

Please sign in to comment.