fix npm run electron by generating package.json

The electron package.json needs to exist for this command to succeed.
If `prepare-electron-publish.js` has never been run then it hasn't been generated yet. Solution, run that everytime.
This commit is contained in:
DanConwayDev committed 2025-11-03 11:35:20 +00:00
1 parent c29843063e
commit 465bef91e8
1 file changed
+2 -2
+2 -2
View File
@@ -18,7 +18,7 @@
"build": "npm i --silent && vite build -l error && cp dist/index.html dist/404.html && echo 'Project built successfully!'",
"typecheck": "npm i --silent && tsc --noEmit",
"test": "npm i --silent && eslint && vitest run --reporter=dot --silent && echo 'All tests passed!'",
"electron": "npm run build && rm -rf electron/dist && cp -r dist electron/dist && electron electron",
"electron": "npm run build && rm -rf electron/dist && cp -r dist electron/dist && node scripts/prepare-electron-publish.js && electron electron",
"electron:publish": "npm run build && node scripts/prepare-electron-publish.js && cd electron && npm publish"
},
"dependencies": {
@@ -138,4 +138,4 @@
"vite-plugin-pwa": "^1.1.0",
"vitest": "^3.1.4"
}
}
}