From ae5219872908642e4297ed2e716005ac77df6314 Mon Sep 17 00:00:00 2001 From: newblacc Date: Tue, 31 Mar 2026 13:14:25 +0200 Subject: [PATCH] fix: make postinstall script cross-platform for Windows compatibility Replace Unix-only `2>/dev/null || true` with a `node -e` inline script that silently ignores better-sqlite3 rebuild failures on all platforms. Co-Authored-By: Claude Sonnet 4.6 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 03dbe03..140d7fc 100644 --- a/package.json +++ b/package.json @@ -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",