Rewired all 4 services: - lib/errors.ts → re-exports from @bytelyst/errors - lib/cosmos.ts → re-exports from @bytelyst/cosmos - lib/product-config.ts → uses loadProductIdentity()/getProductId() from @bytelyst/config - lib/config.ts → kept self-contained (zod v3/v4 type mismatch with loadConfig) Added workspace deps (@bytelyst/errors, @bytelyst/cosmos, @bytelyst/config) to all 4 services. Added docker-compose.yml with Loki, Grafana, Traefik, and all 4 services. Added .env.example with required env vars. Added passWithNoTests to vitest.config.ts. Pinned root zod to ^3.24.0 to match service zod versions. All 12 projects build. 175 tests passing.
34 lines
874 B
JSON
34 lines
874 B
JSON
{
|
|
"name": "@lysnrai/billing-service",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"description": "Billing & Entitlement Service — subscriptions, payments, usage, licenses, plans",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "tsx watch src/server.ts",
|
|
"build": "tsc",
|
|
"start": "node dist/server.js",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"lint": "eslint src/"
|
|
},
|
|
"dependencies": {
|
|
"@bytelyst/config": "workspace:*",
|
|
"@bytelyst/cosmos": "workspace:*",
|
|
"@bytelyst/errors": "workspace:*",
|
|
"@azure/cosmos": "^4.2.0",
|
|
"fastify": "^5.2.1",
|
|
"@fastify/cors": "^10.0.2",
|
|
"@fastify/swagger": "^9.4.2",
|
|
"fastify-metrics": "^10.3.0",
|
|
"stripe": "^17.5.0",
|
|
"zod": "^3.24.2"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.12.0",
|
|
"tsx": "^4.19.2",
|
|
"typescript": "^5.7.3",
|
|
"vitest": "^3.0.5"
|
|
}
|
|
}
|