Skip to content

Commit

Permalink
chore(worker): added missing deps and removed unused ones
Browse files Browse the repository at this point in the history
  • Loading branch information
ascariandrea committed Jan 13, 2025
1 parent 3b30245 commit 89d7357
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 65 deletions.
2 changes: 2 additions & 0 deletions deploy/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@ services:
timeout: 10s
retries: 10
start_period: 30s
restart: always
mem_limit: 1G
depends_on:
- redis

be-worker:
image: ghcr.io/lies-exposed/liexp-worker:alpha-latest
container_name: liexp-be-worker
restart: always
environment:
TG_BOT_POLLING: "true"
REDIS_HOST: "127.0.0.1"
Expand Down
1 change: 1 addition & 0 deletions packages/@liexp/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"@databases/sql": "^3.3.0",
"@liexp/core": "workspace:*",
"@liexp/shared": "workspace:*",
"canvas": "^3.0.1",
"date-fns": "^4.1.0",
"fp-ts": "^2.16.9",
"io-ts": "^2.2.22",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// import { createRequire } from "module";
import { fp, pipe } from "@liexp/core/lib/fp/index.js";
import {
ImageType,
Expand Down
69 changes: 24 additions & 45 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 1 addition & 11 deletions services/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,11 @@
"@liexp/backend": "workspace:*",
"@liexp/core": "workspace:*",
"@liexp/shared": "workspace:*",
"@tanstack/react-query": "^5.63.0",
"axios": "^1.7.9",
"body-parser": "^1.20.3",
"cors": "2.8.5",
"cronstrue": "^2.50.0",
"date-fns": "^4.1.0",
"debug": "*",
"domino": "^2.1.6",
"express": "^4.21.0",
"express-jwt": "^8.5.1",
"express-unless": "^2.1.3",
Expand All @@ -78,21 +75,15 @@
"jsonwebtoken": "^9.0.2",
"lodash": "^4.17.21",
"multer": "^1.4.5-lts.1",
"node-telegram-bot-api": "^0.66.0",
"nodemw": "^0.22.0",
"page-metadata-parser": "^1.1.4",
"parse2-kmz": "^1.0.7",
"pg": "^8.11.5",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"reflect-metadata": "^0.2.2",
"ts-endpoint-express": "^2.0.0",
"tsx": "^4.19.2",
"typeorm": "^0.3.20",
"typescript": "^5.6.2",
"wink-eng-lite-web-model": "^1.8.0",
"wink-nlp": "^2.3.0",
"wink-nlp-utils": "^2.1.0"
"typescript": "^5.6.2"
},
"devDependencies": {
"@liexp/test": "workspace:*",
Expand All @@ -106,7 +97,6 @@
"@types/lodash": "^4.17.14",
"@types/multer": "^1.4.12",
"@types/node": "^22.10.2",
"@types/node-telegram-bot-api": "^0.64.7",
"@types/pg": "^8.11.10",
"@types/prompts": "^2.4.9",
"@types/react": "^18.3.18",
Expand Down
16 changes: 9 additions & 7 deletions services/worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,37 +50,39 @@
"@liexp/core": "workspace:*",
"@liexp/shared": "workspace:*",
"axios": "^1.7.9",
"canvas": "3.0.1",
"cronstrue": "^2.50.0",
"debug": "^4.4.0",
"exifreader": "^4.26.0",
"fluent-ffmpeg": "^2.1.2",
"fp-ts": "^2.16.9",
"instagram-private-api": "^1.46.1",
"io-ts": "^2.2.22",
"io-ts-types": "^0.5.19",
"ioredis": "^5.4.2",
"node-cron": "^3.0.3",
"node-telegram-bot-api": "^0.66.0",
"nodemw": "^0.22.0",
"page-metadata-parser": "^1.1.4",
"parse2-kmz": "^1.0.7",
"pdfjs-dist": "^4.10.38",
"prompts": "^2.4.2",
"puppeteer-core": "^23.11.1",
"puppeteer-extra": "^3.3.6",
"puppeteer-extra-plugin-stealth": "^2.11.2",
"sharp": "^0.33.5",
"typeorm": "^0.3.20",
"wink-nlp": "^2.3.0"
"wink-eng-lite-web-model": "^1.8.0",
"wink-nlp": "^2.3.0",
"wink-nlp-utils": "^2.1.0"
},
"devDependencies": {
"@liexp/test": "workspace:*",
"@types/node-cron": "^3.0.11",
"dotenv": "^16.4.7",
"esbuild": "^0.24.2",
"eslint": "^9.18.0",
"prompts": "^2.4.2",
"supertest": "^7.0.0",
"tsx": "^4.19.2",
"vite-tsconfig-paths": "^5.1.4",
"vitest": "^2.1.8",
"vitest-mock-extended": "^2.0.2"
"vitest": "^2.1.8"
},
"packageManager": "[email protected]+sha512.1f79bc245a66eb0b07c5d4d83131240774642caaa86ef7d0434ab47c0d16f66b04e21e0c086eb61e62c77efc4d7f7ec071afad3796af64892fae66509173893a"
}
1 change: 0 additions & 1 deletion services/worker/src/bin/create-from-wikipedia.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { type WikiProviders } from "@liexp/backend/lib/providers/wikipedia/types.js";
import { pipe } from "@liexp/core/lib/fp/index.js";
import { throwTE } from "@liexp/shared/lib/utils/task.utils.js";

import prompts from "prompts";
import { fetchActorFromWikipedia } from "../flows/actor/fetchAndCreateActorFromWikipedia.flow.js";
import { fetchAndCreateAreaFromWikipedia } from "../flows/area/fetchAndCreateAreaFromWikipedia.js";
Expand Down

0 comments on commit 89d7357

Please sign in to comment.