A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
fix: fix bundling liteque in the workers
Mohamed Bassem851d3e292ff0
diff --git a/apps/workers/package.json b/apps/workers/package.jsonindex 030250e0..74473986 100644--- a/apps/workers/package.json+++ b/apps/workers/package.json@@ -24,6 +24,7 @@"http-proxy-agent": "^7.0.2","https-proxy-agent": "^7.0.6","jsdom": "^24.0.0",+ "liteque": "^0.6.2","metascraper": "^5.46.18","metascraper-amazon": "^5.46.18","metascraper-author": "5.46.18",diff --git a/apps/workers/tsdown.config.ts b/apps/workers/tsdown.config.tsindex 0d8b31c0..4f1cdfb7 100644--- a/apps/workers/tsdown.config.ts+++ b/apps/workers/tsdown.config.ts@@ -13,6 +13,7 @@ export default defineConfig({external: [// Keep native binaries external (transitive deps of bundled workspace packages)"better-sqlite3",+ "liteque",],noExternal: [// Bundle workspace packages (since they're not published to npm)diff --git a/packages/plugins-queue-liteque/package.json b/packages/plugins-queue-liteque/package.jsonindex 0a3916c1..a31c9707 100644--- a/packages/plugins-queue-liteque/package.json+++ b/packages/plugins-queue-liteque/package.json@@ -14,7 +14,7 @@},"dependencies": {"@karakeep/shared": "workspace:*",- "liteque": "^0.6.0"+ "liteque": "^0.6.2"},"devDependencies": {"@karakeep/prettier-config": "workspace:^0.1.0",diff --git a/packages/plugins-queue-liteque/src/index.ts b/packages/plugins-queue-liteque/src/index.tsindex 3da161d8..16e6e20a 100644--- a/packages/plugins-queue-liteque/src/index.ts+++ b/packages/plugins-queue-liteque/src/index.ts@@ -125,7 +125,6 @@ export class LitequeQueueProvider implements PluginProvider<QueueClient> {async getClient(): Promise<QueueClient | null> {if (!this.client) {const client = new LitequeQueueClient();- await client.init();this.client = client;}return this.client;diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex dc31796c..554c0426 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -832,6 +832,9 @@ importers:jsdom:specifier: ^24.0.0version: 24.1.3+ liteque:+ specifier: ^0.6.2+ version: 0.6.2(@opentelemetry/[email protected])(@types/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])metascraper:specifier: ^5.46.18version: 5.47.1@@ -1142,8 +1145,8 @@ importers:specifier: workspace:*version: link:../sharedliteque:- specifier: ^0.6.0- version: 0.6.0(@opentelemetry/[email protected])(@types/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])+ specifier: ^0.6.2+ version: 0.6.2(@opentelemetry/[email protected])(@types/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])devDependencies:'@karakeep/prettier-config':specifier: workspace:^0.1.0@@ -9862,8 +9865,8 @@ packages:resolution: {integrity: sha512-wUayTU8MS827Dam6MxgD72Ui+KOSF+u/eIqpatOtjnvgJ0+mnDq33uC2M7J0tPK+upe/DpUAuK4JUU89iBoNKQ==}engines: {node: '>=4'}- resolution: {integrity: sha512-5IjKjT8wz0p49X+A9vXHovznlu7h3tlspt4y6umjuCqnUTy5zbzPqNUILG16de7GYpY/uGXhiYK4Rosg4CrB0g==}+ resolution: {integrity: sha512-q99LW+XXHsy3/r1YFTwEmFz1q9Fd8gd9bnBw03gcIlrXjqcmW3av2OrmSKytwUIMdQwbHB0zI5fk/nC/J6xIUQ==}peerDependencies:better-sqlite3: '>=7'@@ -25317,7 +25320,7 @@ snapshots:- [email protected](@opentelemetry/[email protected])(@types/[email protected])(@types/[email protected])([email protected])([email protected])([email protected]):+ [email protected](@opentelemetry/[email protected])(@types/[email protected])(@types/[email protected])([email protected])([email protected])([email protected]):dependencies:async-mutex: 0.4.1better-sqlite3: 11.3.0