Skip to content

Build your personal knowledge base with Trilium Notes

chore(desktop): adapt to new rebuild script

Elian Doran0b00c73ed3a1
diff --git a/apps/desktop/package.json b/apps/desktop/package.json
index 3c7b64d8fa..3c2524a203 100644
--- a/apps/desktop/package.json
+++ b/apps/desktop/package.json
@@ -53,7 +53,7 @@
"cache": true,
"configurations": {
"default": {
- "command": "cross-env DEBUG=* tsx scripts/rebuild.ts",
+ "command": "cross-env DEBUG=* tsx scripts/rebuild.mts",
"cwd": "{projectRoot}"
},
"nixos": {
diff --git a/apps/desktop/scripts/rebuild.ts b/apps/desktop/scripts/rebuild.mts
similarity index 96%
rename from apps/desktop/scripts/rebuild.ts
rename to apps/desktop/scripts/rebuild.mts
index 5f7d0c6fd3..f76cacea52 100644
--- a/apps/desktop/scripts/rebuild.ts
+++ b/apps/desktop/scripts/rebuild.mts
@@ -8,7 +8,7 @@
import { fileURLToPath } from "url";
import { dirname, join } from "path";
-import rebuild from "@electron/rebuild"
+import { rebuild } from "@electron/rebuild"
import { readFileSync } from "fs";
const scriptDir = dirname(fileURLToPath(import.meta.url));