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",