setup: exclude better-sqlite3 & sodium-native from rebuild

This commit is contained in:
Abdullah Atta
2024-04-02 15:19:00 +05:00
parent 168be74277
commit 9c158dfa53
2 changed files with 6 additions and 0 deletions

View File

@@ -40,6 +40,11 @@ const scopes = {
};
// packages that we shouldn't run npm rebuild for
const IGNORED_NATIVE_PACKAGES = [
// these get built by electron-builder automatically.
...(args.scope === "desktop"
? ["better-sqlite3-multiple-ciphers", "sodium-native"]
: []),
// optional dependency of pdfjs-dist, we can ignore
// it because it's only needed in non-browser environments
"canvas",