mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-02-27 18:22:41 -08:00
Isolate process-side effects behind adapter seams and keep wrapper behavior stable while improving command-level testability.
12 lines
324 B
TypeScript
12 lines
324 B
TypeScript
import fs from 'node:fs';
|
|
import os from 'node:os';
|
|
import { resolveConfigFilePath } from '../src/config/path-resolution.js';
|
|
|
|
export function resolveMainConfigPath(): string {
|
|
return resolveConfigFilePath({
|
|
xdgConfigHome: process.env.XDG_CONFIG_HOME,
|
|
homeDir: os.homedir(),
|
|
existsSync: fs.existsSync,
|
|
});
|
|
}
|