From 3e9fcd2bc61f6e0ece68352aaedf0bf9347b866f Mon Sep 17 00:00:00 2001 From: David Enke Date: Mon, 21 Oct 2024 17:35:44 +0200 Subject: [PATCH] fix(demo): limit schema width --- src/demo/demo.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/demo/demo.ts b/src/demo/demo.ts index de34199..6f60c3a 100644 --- a/src/demo/demo.ts +++ b/src/demo/demo.ts @@ -56,7 +56,7 @@ window.handleInput = async event => { const schemas = await Promise.all( collections.map(async collection => { const { cptime } = transformCollection(collection, { zod }); - return [collection.name, await formatCode(cptime)]; + return [collection.name, await formatCode(cptime, undefined, { printWidth: 50 })]; }), ); window.updatePreview(JSON.stringify(collections, null, 2), Object.fromEntries(schemas));