Showing the changes to apps/server/src/sourceControl/SourceControlRepositoryService.ts (1 of 59 files). Show all
Unified · Split
| @@ -1,4 +1,4 @@ | ||
| 1 | −import OS from "node:os"; | |
| 1 | +import * as NodeOS from "node:os"; | |
| 2 | 2 | import { Context, Effect, FileSystem, Layer, Path, Schema } from "effect"; |
| 3 | 3 | |
| 4 | 4 | import { |
| @@ -15,8 +15,8 @@ import { · 10 unmodified lines | ||
| 15 | 15 | } from "@t3tools/contracts"; |
| 16 | 16 | |
| 17 | 17 | import { ServerConfig } from "../config.ts"; |
| 18 | −import { GitVcsDriver } from "../vcs/GitVcsDriver.ts"; | |
| 19 | −import { SourceControlProviderRegistry } from "./SourceControlProviderRegistry.ts"; | |
| 18 | +import * as GitVcsDriver from "../vcs/GitVcsDriver.ts"; | |
| 19 | +import * as SourceControlProviderRegistry from "./SourceControlProviderRegistry.ts"; | |
| 20 | 20 | |
| 21 | 21 | export interface SourceControlRepositoryServiceShape { |
| 22 | 22 | readonly lookupRepository: ( |
| @@ -102,10 +102,10 @@ function selectRemoteUrl( · 79 unmodified lines | ||
| 102 | 102 | |
| 103 | 103 | function expandHomePath(input: string, path: Path.Path): string { |
| 104 | 104 | if (input === "~") { |
| 105 | − return OS.homedir(); | |
| 105 | + return NodeOS.homedir(); | |
| 106 | 106 | } |
| 107 | 107 | if (input.startsWith("~/") || input.startsWith("~\\")) { |
| 108 | − return path.join(OS.homedir(), input.slice(2)); | |
| 108 | + return path.join(NodeOS.homedir(), input.slice(2)); | |
| 109 | 109 | } |
| 110 | 110 | return input; |
| 111 | 111 | } |
| @@ -113,9 +113,9 @@ function expandHomePath(input: string, path: Path.Path): string { · 1 unmodified line | ||
| 113 | 113 | export const make = Effect.fn("makeSourceControlRepositoryService")(function* () { |
| 114 | 114 | const config = yield* ServerConfig; |
| 115 | 115 | const fileSystem = yield* FileSystem.FileSystem; |
| 116 | − const git = yield* GitVcsDriver; | |
| 116 | + const git = yield* GitVcsDriver.GitVcsDriver; | |
| 117 | 117 | const path = yield* Path.Path; |
| 118 | − const providers = yield* SourceControlProviderRegistry; | |
| 118 | + const providers = yield* SourceControlProviderRegistry.SourceControlProviderRegistry; | |
| 119 | 119 | |
| 120 | 120 | const ensureConcreteProvider = (input: { |
| 121 | 121 | readonly operation: string; |