Merge pull request #6 from celstnblacc/fix/windows-postinstall

fix: make postinstall cross-platform for Windows
This commit is contained in:
Maxime Roy (new.blacc)
2026-03-31 13:18:12 +02:00
committed by GitHub
+1 -1
View File
@@ -17,7 +17,7 @@
"dev": "concurrently \"npm run dev:server\" \"vite\"",
"dev:server": "npx tsc --watch",
"production": "npm run build && npm run canvas",
"postinstall": "npm rebuild better-sqlite3 --update-binary 2>/dev/null || true",
"postinstall": "node -e \"const {execSync}=require('child_process');try{execSync('npm rebuild better-sqlite3 --update-binary',{stdio:'ignore'})}catch(e){}\"",
"prepublishOnly": "npm run build",
"setup": "node dist/index.js setup",
"update": "node dist/index.js update",