From a75ff6d8e446a411f0597014311a9a880933ad9a Mon Sep 17 00:00:00 2001 From: Adrian <107351903+6lr61@users.noreply.github.com> Date: Thu, 19 Sep 2024 08:11:07 +0200 Subject: [PATCH] chore: add tsc watch command the bundler used with vite dev's server isn't doing any type checking, so we have to run tsc in watch mode ourselves --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index cc3e064..ef68ac3 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "type": "module", "scripts": { "dev": "vite", + "watch": "tsc -b tsconfig.app.json -w", "build": "tsc -b && vite build", "lint": "eslint .", "preview": "vite preview"