From f73965003445283062ee0f39604f8cc5f103a3a0 Mon Sep 17 00:00:00 2001 From: Paul McClean Date: Thu, 10 Jul 2025 11:00:14 +0100 Subject: [PATCH] Run schema extraction or typegen from frontend won't type new fields correctly --- package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.json b/package.json index ab4eeed..c8e9436 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,8 @@ "name": "sanity-template-nextjs-clean", "description": "Next.js + Sanity: A Powerful Website Starter with Real-time Visual Editing", "scripts": { + "predev": "npm run schema:extract", + "schema:extract": "cd studio && sanity schema extract", "dev": "npm-run-all --parallel --print-label dev:*", "dev:next": "npm run dev --workspace=frontend", "dev:studio": "npm run dev --workspace=studio",