Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
100 lines (100 loc) · 4.36 KB
/
Copy pathpackage.json
File metadata and controls
100 lines (100 loc) · 4.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{
"name": "traffic-analytics",
"private": true,
"version": "1.0.577",
"repository": "git@github.com:TryGhost/TrafficAnalytics.git",
"author": "Ghost Foundation",
"license": "MIT",
"main": "dist/server.js",
"type": "module",
"packageManager": "pnpm@12.21.0",
"scripts": {
"build": "vite build",
"dev": "pnpm dev:batch",
"dev:proxy": "docker compose up -d --wait && docker compose up analytics-service-proxy",
"dev:batch": "docker compose up -d --wait && docker compose up analytics-service worker tinybird-sync",
"dev:ghost": "docker compose -f compose.yml -f compose.ghost.yml -f compose.override.yml up -d --wait && docker compose -f compose.yml -f compose.ghost.yml -f compose.override.yml up --force-recreate analytics-service worker tinybird-sync",
"start": "node --enable-source-maps dist/server.js",
"start:worker": "WORKER_MODE=true node --enable-source-maps dist/server.js",
"start:tinybird-sync-worker": "WORKER_MODE=tinybird-sync node --enable-source-maps dist/server.js",
"pretest": "pnpm build",
"test": "docker compose --profile testing run --rm test pnpm _test",
"_test": "pnpm _test:types && pnpm _test:coverage",
"test:coverage": "docker compose --profile testing run --rm test pnpm _test:coverage",
"_test:coverage": "NODE_ENV=testing vitest run --project unit --project integration --coverage",
"test:types": "docker compose --profile testing run --no-deps --rm test pnpm _test:types",
"_test:types": "tsc --noEmit",
"test:unit": "docker compose --profile testing run --no-deps --rm -T test pnpm _test:unit",
"_test:unit": "NODE_ENV=testing vitest run --project unit",
"test:unit:watch": "docker compose --profile testing run --rm test pnpm _test:unit:watch",
"_test:unit:watch": "NODE_ENV=testing vitest watch --project unit",
"test:integration": "docker compose --profile testing run --rm test pnpm _test:integration",
"_test:integration": "NODE_ENV=testing vitest run --project integration",
"_test:integration:watch": "NODE_ENV=testing vitest watch --project integration",
"_test:e2e": "NODE_ENV=testing vitest run --project e2e",
"test:e2e": "env PROXY_TARGET=http://fake-tinybird:8080/v0/events COMPOSE_PROFILES=batch,proxy sh -c 'docker compose up -d --wait && docker compose run --rm e2e-test'",
"test:healthchecks": "playwright test",
"lint": "docker compose --profile testing run --no-deps --rm -T test pnpm _lint",
"_lint": "eslint src/ test/ scripts/ *.ts --ext .js,.ts --cache",
"lint:fix": "docker compose --profile testing run --rm test pnpm _lint:fix",
"_lint:fix": "eslint src/ test/ scripts/ *.ts --ext .js,.ts --cache --fix",
"ship": "node scripts/ship.js",
"prepare": "husky"
},
"files": [
"dist"
],
"engines": {
"node": "^26.11.1"
},
"devDependencies": {
"@playwright/test": "1.65.1",
"@types/node": "26.6.10",
"@types/split2": "4.2.3",
"@types/supertest": "7.2.1",
"@types/ua-parser-js": "0.7.39",
"@vitest/coverage-v8": "5.1.1",
"eslint": "8.57.1",
"eslint-plugin-ghost": "3.5.0",
"husky": "9.1.7",
"pino-pretty": "13.2.0",
"playwright": "1.65.1",
"supertest": "7.3.2",
"tsx": "4.23.15",
"type-fest": "6.0.3",
"typescript": "7.0.2",
"vite": "8.3.8",
"vitest": "5.1.1"
},
"dependencies": {
"@fastify/bearer-auth": "10.1.4",
"@fastify/cors": "11.4.3",
"@fastify/otel": "1.0.1",
"@fastify/reply-from": "12.9.1",
"@google-cloud/firestore": "9.4.1",
"@google-cloud/pino-logging-gcp-config": "1.3.6",
"@google-cloud/pubsub": "6.4.1",
"@opentelemetry/api": "1.10.0",
"@opentelemetry/core": "3.1.1",
"@opentelemetry/exporter-trace-otlp-http": "0.301.2",
"@opentelemetry/exporter-trace-otlp-proto": "0.301.2",
"@opentelemetry/instrumentation-http": "0.301.2",
"@opentelemetry/instrumentation-undici": "0.35.1",
"@opentelemetry/resources": "3.1.1",
"@opentelemetry/sdk-node": "0.301.2",
"@opentelemetry/sdk-trace-base": "2.12.0",
"@opentelemetry/semantic-conventions": "1.45.0",
"@tryghost/errors": "3.4.8",
"@tryghost/referrer-parser": "0.1.27",
"ajv": "8.20.0",
"ajv-formats": "3.0.1",
"fast-json-stringify": "7.3.10",
"fastify": "5.12.8",
"fastify-plugin": "6.0.1",
"google-auth-library": "11.3.4",
"pino": "10.4.0",
"split2": "4.2.0",
"ua-parser-js": "1.0.41",
"zod": "4.6.7"
}
}