Skip to content

Build your personal knowledge base with Trilium Notes

chore(scripts): typecheck the maintenance scripts

Elian Doranae798be4ea41
diff --git a/scripts/electron-start.mts b/scripts/electron-start.mts
index b0270f1f1e..c2d1534543 100644
--- a/scripts/electron-start.mts
+++ b/scripts/electron-start.mts
@@ -17,7 +17,7 @@ buildSync({
external: ["electron"]
});
-const LD_LIBRARY_PATH = isNixOS() && getNixLdLibraryPath();
+const LD_LIBRARY_PATH = isNixOS() ? getNixLdLibraryPath() : undefined;
const args = process.argv.slice(2);
execSync(`${getElectronPath()} ${args.join(" ")} --no-sandbox`, {
diff --git a/scripts/tsconfig.json b/scripts/tsconfig.json
index 533c0c3792..22100648f5 100644
--- a/scripts/tsconfig.json
+++ b/scripts/tsconfig.json
@@ -13,8 +13,12 @@
"tsBuildInfoFile": "dist/tsconfig.app.tsbuildinfo"
},
"include": [
- "scripts/*.ts",
- "packages/commons/src/lib/i18n.ts"
+ "**/*.ts",
+ "**/*.mts",
+ "../packages/commons/src/lib/i18n.ts"
+ ],
+ "exclude": [
+ "dist"
],
"references": []
}