From 1525596e0edcfbbb71c99ecb3b7211b214f0e51a Mon Sep 17 00:00:00 2001 From: Chen Gu Date: Sat, 9 May 2026 02:26:29 +0800 Subject: [PATCH] chore: add electron:compile script for Windows testing --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 8d03be2..6143e45 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,9 @@ "scripts": { "dev": "vite", "build": "tsc && vite build", - "electron:dev": "concurrently \"vite\" \"wait-on http://localhost:5173 && electron .\"", - "electron:build": "vite build && electron-builder" + "electron:compile": "tsc electron/main.ts electron/preload.ts --outDir electron --module commonjs --moduleResolution node --skipLibCheck --target es2020 --allowSyntheticDefaultImports --esModuleInterop --declaration false", + "electron:dev": "npm run electron:compile && concurrently \"vite\" \"wait-on http://localhost:5173 && electron .\"", + "electron:build": "vite build && npm run electron:compile && electron-builder" }, "dependencies": { "@fontsource-variable/inter": "^5.2.8",