Task 001: dockerized monorepo foundation
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"name": "@pipeline/shared",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"exports": {
|
||||
".": "./src/index.ts"
|
||||
},
|
||||
"scripts": {
|
||||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
"devDependencies": {
|
||||
"typescript": "5.7.2"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
export type ServiceName = "backend" | "frontend" | "runner";
|
||||
|
||||
export type HealthResponse = {
|
||||
service: ServiceName;
|
||||
status: "ok";
|
||||
};
|
||||
|
||||
export type BackendDependencyName = "postgres" | "redis" | "object_storage";
|
||||
|
||||
export type BackendDependenciesHealthResponse = HealthResponse & {
|
||||
service: "backend";
|
||||
dependencies: Record<BackendDependencyName, "ok">;
|
||||
};
|
||||
@@ -0,0 +1,6 @@
|
||||
export type {
|
||||
BackendDependenciesHealthResponse,
|
||||
BackendDependencyName,
|
||||
HealthResponse,
|
||||
ServiceName,
|
||||
} from "./health";
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2022",
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "Bundler",
|
||||
"strict": true,
|
||||
"declaration": true,
|
||||
"noEmit": true,
|
||||
"skipLibCheck": true
|
||||
},
|
||||
"include": ["src/**/*.ts"]
|
||||
}
|
||||
Reference in New Issue
Block a user