tangled
alpha
login
or
join now
byarielm.fyi
/
atlast
16
fork
atom
ATlast — you'll never need to find your favorites on another platform again. Find your favs in the ATmosphere.
atproto
16
fork
atom
overview
issues
1
pulls
pipelines
chore(worker): setup worker package configs
byarielm.fyi
2 weeks ago
30190c7a
a5d3994b
verified
This commit was signed with the committer's
known signature
.
byarielm.fyi
SSH Key Fingerprint:
SHA256:tiR/P3lCKVUH+jzTEMtKH/Z4aYnnrkf/KdRBPq1n6Rc=
+55
-3
3 changed files
expand all
collapse all
unified
split
packages
worker
package.json
tsconfig.json
vitest.config.ts
+16
-3
packages/worker/package.json
···
1
1
{
2
2
"name": "@atlast/worker",
3
3
"version": "1.0.0",
4
4
-
"description": "",
5
5
-
"main": "index.js",
4
4
+
"type": "module",
5
5
+
"description": "BullMQ worker for background jobs",
6
6
+
"main": "dist/index.js",
6
7
"scripts": {
7
7
-
"test": "echo \"Error: no test specified\" && exit 1"
8
8
+
"dev": "tsx watch src/index.ts",
9
9
+
"build": "tsc",
10
10
+
"start": "node dist/index.js",
11
11
+
"test": "vitest run",
12
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
22
+
"dotenv": "^17.2.3",
17
23
"ioredis": "^5.9.2",
18
24
"kysely": "^0.28.10",
19
25
"pg": "^8.17.2"
26
26
+
},
27
27
+
"devDependencies": {
28
28
+
"@types/node": "^24.10.4",
29
29
+
"@types/pg": "^8.16.0",
30
30
+
"tsx": "^4.21.0",
31
31
+
"typescript": "^5.9.3",
32
32
+
"vitest": "^3.2.4"
20
33
}
21
34
}
+23
packages/worker/tsconfig.json
···
1
1
+
{
2
2
+
"compilerOptions": {
3
3
+
"target": "ES2022",
4
4
+
"module": "ESNext",
5
5
+
"moduleResolution": "bundler",
6
6
+
"lib": ["ES2022"],
7
7
+
"outDir": "./dist",
8
8
+
"strict": true,
9
9
+
"esModuleInterop": true,
10
10
+
"allowSyntheticDefaultImports": true,
11
11
+
"skipLibCheck": true,
12
12
+
"forceConsistentCasingInFileNames": true,
13
13
+
"resolveJsonModule": true,
14
14
+
"isolatedModules": true,
15
15
+
"types": ["node"],
16
16
+
"paths": {
17
17
+
"@atlast/shared": ["../shared/src/index.ts"],
18
18
+
"@atlast/shared/*": ["../shared/src/*"]
19
19
+
}
20
20
+
},
21
21
+
"include": ["src/**/*"],
22
22
+
"exclude": ["node_modules", "dist", "__tests__"]
23
23
+
}
+16
packages/worker/vitest.config.ts
···
1
1
+
import { defineConfig } from "vitest/config";
2
2
+
3
3
+
export default defineConfig({
4
4
+
test: {
5
5
+
globals: true,
6
6
+
environment: "node",
7
7
+
setupFiles: ["__tests__/setup.ts"],
8
8
+
fileParallelism: false, // Shared DB connections — run test files sequentially
9
9
+
testTimeout: 30000,
10
10
+
coverage: {
11
11
+
provider: "v8",
12
12
+
reporter: ["text", "json", "html"],
13
13
+
exclude: ["node_modules/**", "dist/**", "__tests__/**"],
14
14
+
},
15
15
+
},
16
16
+
});