desktop: do not gitignore *.patch

This commit is contained in:
Abdullah Atta
2025-05-31 13:26:58 +05:00
parent 538f1f1910
commit e5998f51e9
3 changed files with 3 additions and 3 deletions

2
.gitignore vendored
View File

@@ -11,4 +11,4 @@ nx-cloud.env
site site
node_modules.backup node_modules.backup
.nx .nx
*.patch /*.patch

View File

@@ -25,6 +25,8 @@ const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename); const __dirname = path.dirname(__filename);
export async function patchBetterSQLite3() { export async function patchBetterSQLite3() {
console.log("Patching better-sqlite3");
const jsonPath = path.join( const jsonPath = path.join(
__dirname, __dirname,
"..", "..",
@@ -52,6 +54,5 @@ export async function patchBetterSQLite3() {
} }
if (process.argv[1] === __filename) { if (process.argv[1] === __filename) {
console.log("Patching better-sqlite3");
patchBetterSQLite3(); patchBetterSQLite3();
} }

View File

@@ -26,7 +26,6 @@ import { useSearch } from "../hooks/use-search";
import { db } from "../common/db"; import { db } from "../common/db";
import { useEditorStore } from "../stores/editor-store"; import { useEditorStore } from "../stores/editor-store";
import { ListLoader } from "../components/loaders/list-loader"; import { ListLoader } from "../components/loaders/list-loader";
import Search from "./search";
function Home() { function Home() {
const notes = useStore((store) => store.notes); const notes = useStore((store) => store.notes);