Skip to content

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

fix: compile native modules under pnpm 9 and pin Node 24 (#2686)

Evan Simkowitz393953610915
diff --git a/.nvmrc b/.nvmrc
new file mode 100644
index 00000000..a45fd52c
--- /dev/null
+++ b/.nvmrc
@@ -0,0 +1 @@
+24
diff --git a/package.json b/package.json
index 1c8638e3..1dccd354 100644
--- a/package.json
+++ b/package.json
@@ -37,6 +37,10 @@
},
"packageManager": "[email protected]",
"pnpm": {
+ "onlyBuiltDependencies": [
+ "better-sqlite3",
+ "re2"
+ ],
"patchedDependencies": {
diff --git a/packages/db/package.json b/packages/db/package.json
index 8b45efaa..ec8e3afb 100644
--- a/packages/db/package.json
+++ b/packages/db/package.json
@@ -28,7 +28,6 @@
},
"devDependencies": {
"@karakeep/tsconfig": "workspace:^0.1.0",
- "@tsconfig/node22": "^22.0.0",
"@types/better-sqlite3": "^7.6.11",
"@vercel/ncc": "^0.38.4"
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 66910b9d..71c32dad 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -1161,9 +1161,6 @@ importers:
'@karakeep/tsconfig':
specifier: workspace:^0.1.0
version: link:../../tooling/typescript
- '@tsconfig/node22':
- specifier: ^22.0.0
- version: 22.0.2
'@types/better-sqlite3':
specifier: ^7.6.11
version: 7.6.13
@@ -10239,7 +10236,7 @@ packages:
resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==}
- deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]
+ deprecated: Glob versions prior to v9 are no longer supported
resolution: {integrity: sha512-NknMLn7F2J7aflwFOlGdNIuCDpN3VGoSoB+aap3KABFWbHVn1TCgFC+np23J8W2BiZbjfEw3BFBycSMv1AFblg==}