ATlast — you'll never need to find your favorites on another platform again. Find your favs in the ATmosphere.
atproto
16
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore(worker): setup worker package configs

byarielm.fyi 30190c7a a5d3994b

verified
+55 -3
+16 -3
packages/worker/package.json
··· 1 1 { 2 2 "name": "@atlast/worker", 3 3 "version": "1.0.0", 4 - "description": "", 5 - "main": "index.js", 4 + "type": "module", 5 + "description": "BullMQ worker for background jobs", 6 + "main": "dist/index.js", 6 7 "scripts": { 7 - "test": "echo \"Error: no test specified\" && exit 1" 8 + "dev": "tsx watch src/index.ts", 9 + "build": "tsc", 10 + "start": "node dist/index.js", 11 + "test": "vitest run", 12 + "test:watch": "vitest" 8 13 }, 9 14 "keywords": [], 10 15 "author": "", ··· 14 19 "@atlast/shared": "workspace:*", 15 20 "@atproto/api": "^0.18.16", 16 21 "bullmq": "^5.66.5", 22 + "dotenv": "^17.2.3", 17 23 "ioredis": "^5.9.2", 18 24 "kysely": "^0.28.10", 19 25 "pg": "^8.17.2" 26 + }, 27 + "devDependencies": { 28 + "@types/node": "^24.10.4", 29 + "@types/pg": "^8.16.0", 30 + "tsx": "^4.21.0", 31 + "typescript": "^5.9.3", 32 + "vitest": "^3.2.4" 20 33 } 21 34 }
+23
packages/worker/tsconfig.json
··· 1 + { 2 + "compilerOptions": { 3 + "target": "ES2022", 4 + "module": "ESNext", 5 + "moduleResolution": "bundler", 6 + "lib": ["ES2022"], 7 + "outDir": "./dist", 8 + "strict": true, 9 + "esModuleInterop": true, 10 + "allowSyntheticDefaultImports": true, 11 + "skipLibCheck": true, 12 + "forceConsistentCasingInFileNames": true, 13 + "resolveJsonModule": true, 14 + "isolatedModules": true, 15 + "types": ["node"], 16 + "paths": { 17 + "@atlast/shared": ["../shared/src/index.ts"], 18 + "@atlast/shared/*": ["../shared/src/*"] 19 + } 20 + }, 21 + "include": ["src/**/*"], 22 + "exclude": ["node_modules", "dist", "__tests__"] 23 + }
+16
packages/worker/vitest.config.ts
··· 1 + import { defineConfig } from "vitest/config"; 2 + 3 + export default defineConfig({ 4 + test: { 5 + globals: true, 6 + environment: "node", 7 + setupFiles: ["__tests__/setup.ts"], 8 + fileParallelism: false, // Shared DB connections — run test files sequentially 9 + testTimeout: 30000, 10 + coverage: { 11 + provider: "v8", 12 + reporter: ["text", "json", "html"], 13 + exclude: ["node_modules/**", "dist/**", "__tests__/**"], 14 + }, 15 + }, 16 + });