-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpackage.json
More file actions
84 lines (84 loc) · 3.73 KB
/
package.json
File metadata and controls
84 lines (84 loc) · 3.73 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
{
"name": "traffic-analytics",
"version": "1.0.161",
"repository": "git@github.com:TryGhost/TrafficAnalytics.git",
"author": "Ghost Foundation",
"license": "MIT",
"main": "dist/server.js",
"type": "module",
"scripts": {
"build": "vite build",
"dev": "yarn 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",
"dev:ghost": "docker compose up -d --wait && docker compose -f compose.yml -f compose.ghost.yml -f compose.override.yml up analytics-service worker",
"start": "node --enable-source-maps dist/server.js",
"start:worker": "WORKER_MODE=true node --enable-source-maps dist/server.js",
"pretest": "yarn build",
"test": "docker compose --profile testing run --rm test yarn _test",
"_test": "yarn _test:types && yarn _test:unit && yarn _test:integration",
"test:types": "docker compose --profile testing run --no-deps --rm test yarn _test:types",
"_test:types": "tsc --noEmit",
"test:unit": "docker compose --profile testing run --no-deps --rm -T test yarn _test:unit",
"_test:unit": "NODE_ENV=testing vitest run test/unit --coverage",
"test:unit:watch": "docker compose --profile testing run --rm test yarn _test:unit:watch",
"_test:unit:watch": "NODE_ENV=testing vitest watch test/unit",
"test:integration": "docker compose --profile testing run --rm test yarn _test:integration",
"_test:integration": "NODE_ENV=testing vitest run --config vitest.config.integration.ts",
"_test:integration:watch": "NODE_ENV=testing vitest watch --config vitest.config.integration.ts",
"_test:e2e": "NODE_ENV=testing vitest run test/e2e --coverage=false",
"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 yarn _lint",
"_lint": "eslint src/ test/ scripts/ *.ts --ext .js,.ts --cache",
"lint:fix": "docker compose --profile testing run --rm test yarn _lint:fix",
"_lint:fix": "eslint src/ test/ scripts/ *.ts --ext .js,.ts --cache --fix",
"ship": "node scripts/ship.js",
"prepare": "husky"
},
"files": [
"dist"
],
"devDependencies": {
"@playwright/test": "1.58.2",
"@types/node": "24.12.0",
"@types/supertest": "7.2.0",
"@types/ua-parser-js": "0.7.39",
"@vitest/coverage-v8": "4.1.1",
"eslint": "8.57.1",
"eslint-plugin-ghost": "3.5.0",
"husky": "9.1.7",
"pino-pretty": "13.1.3",
"playwright": "1.58.2",
"supertest": "7.2.2",
"tsx": "4.21.0",
"typescript": "5.9.3",
"vite": "8.0.2",
"vitest": "4.1.1"
},
"dependencies": {
"@fastify/cors": "11.2.0",
"@fastify/reply-from": "12.6.1",
"@fastify/type-provider-typebox": "5.2.0",
"@google-cloud/firestore": "8.3.0",
"@google-cloud/opentelemetry-cloud-trace-exporter": "3.0.0",
"@google-cloud/pino-logging-gcp-config": "1.3.3",
"@google-cloud/pubsub": "5.3.0",
"@opentelemetry/api": "1.9.0",
"@opentelemetry/auto-instrumentations-node": "0.71.0",
"@opentelemetry/core": "2.6.0",
"@opentelemetry/exporter-trace-otlp-http": "0.213.0",
"@opentelemetry/resources": "2.6.0",
"@opentelemetry/sdk-node": "0.213.0",
"@opentelemetry/sdk-trace-base": "2.6.0",
"@opentelemetry/semantic-conventions": "1.40.0",
"@sinclair/typebox": "0.34.48",
"@tryghost/errors": "3.0.3",
"@tryghost/referrer-parser": "0.1.15",
"@tryghost/validator": "2.0.3",
"fastify": "5.8.4",
"fastify-plugin": "5.1.0",
"pino": "10.3.1",
"ua-parser-js": "1.0.41"
}
}