From 7884faf5168c663e8f955e08c2475361504e8c36 Mon Sep 17 00:00:00 2001 From: Ping <5123601+pingren@users.noreply.github.com> Date: Sun, 16 Jun 2024 04:33:03 +0800 Subject: [PATCH] chore: add --noEmit to tsc and extract it to typecheck script (#16) --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 082ccf683f..8ffa00b242 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "type": "module", "scripts": { "dev": "vite", - "build": "tsc && vite build", + "build": "npm run typecheck && vite build", + "typecheck": "tsc --noEmit", "test": "cd tests-ui && npm run test", "preview": "vite preview" },