mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-24 07:29:30 +01:00
setup: exclude better-sqlite3 & sodium-native from rebuild
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -124,6 +124,7 @@ for (const lockfile of lockfiles) {
|
||||
execute(
|
||||
`flatpak-node-generator`,
|
||||
[
|
||||
lockfile.name === "desktop" ? "--electron-node-headers" : false,
|
||||
lockfile.ignoreDev ? "--no-devel" : false,
|
||||
"npm",
|
||||
lockfile.path,
|
||||
|
||||
Reference in New Issue
Block a user