Skip to content

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search

fix: fix pnpm symlink conflict (#2725)

Mohamed Bassemb3d0cea9d7ee
diff --git a/apps/mcp/package.json b/apps/mcp/package.json
index 3df35507..1fcad86a 100644
--- a/apps/mcp/package.json
+++ b/apps/mcp/package.json
@@ -19,7 +19,8 @@
"@types/turndown": "^5.0.5",
"shx": "^0.4.0",
"tsx": "^4.8.1",
- "vite": "^7.0.6"
+ "vite": "^7.0.6",
+ "vite-tsconfig-paths": "^6.1.1"
},
"scripts": {
"build": "vite build && shx chmod +x dist/index.js",
diff --git a/apps/web/package.json b/apps/web/package.json
index 20639d7d..8773fa66 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -58,6 +58,7 @@
"@trpc/client": "^11.9.0",
"@trpc/server": "^11.9.0",
"@trpc/tanstack-react-query": "^11.9.0",
+ "better-sqlite3": "^11.3.0",
"cheerio": "^1.0.0",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
diff --git a/apps/workers/package.json b/apps/workers/package.json
index 6959d9aa..a9f250eb 100644
--- a/apps/workers/package.json
+++ b/apps/workers/package.json
@@ -17,6 +17,7 @@
"@tsconfig/node22": "^22.0.0",
"archiver": "^7.0.1",
"async-mutex": "^0.4.1",
+ "better-sqlite3": "^11.3.0",
"dompurify": "^3.2.4",
"dotenv": "^16.4.1",
"drizzle-orm": "^0.45.2",
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 4a6cb106..d10eb891 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -50,7 +50,8 @@ COPY ./patches ./patches
ENV NEXT_TELEMETRY_DISABLED=1
ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
-RUN pnpm install --frozen-lockfile
+# Avoid pnpm hardlink collisions in Docker while preserving the repo's hoisted workspace layout.
+RUN pnpm install --frozen-lockfile --config.package-import-method=copy
COPY . .
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 312ef677..6973cc1b 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -296,6 +296,9 @@ importers:
vite:
specifier: ^7.0.6
+ vite-tsconfig-paths:
+ specifier: ^6.1.1
apps/mobile:
dependencies:
@@ -627,6 +630,9 @@ importers:
'@trpc/tanstack-react-query':
specifier: ^11.9.0
+ better-sqlite3:
+ specifier: ^11.3.0
+ version: 11.3.0
cheerio:
specifier: ^1.0.0
version: 1.0.0
@@ -838,6 +844,9 @@ importers:
async-mutex:
specifier: ^0.4.1
version: 0.4.1
+ better-sqlite3:
+ specifier: ^11.3.0
+ version: 11.3.0
dompurify:
specifier: ^3.2.4
version: 3.2.6