MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / resolveConfigPath

Function resolveConfigPath

packages/core/vite-plugin/src/index.ts:89–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

87 let cachedSource: string | null = null;
88
89 const resolveConfigPath = (): string | null => {
90 if (resolvedConfigPath) return resolvedConfigPath;
91 const candidates = options.configPath ? [options.configPath] : DEFAULT_CONFIG_CANDIDATES;
92 for (const candidate of candidates) {
93 const abs = isAbsolute(candidate) ? candidate : resolvePath(projectRoot, candidate);
94 if (existsSync(abs)) {
95 resolvedConfigPath = abs;
96 return abs;
97 }
98 }
99 return null;
100 };
101
102 const resolveJsoncPath = (): string | null => {
103 if (resolvedJsoncPath) return resolvedJsoncPath;

Callers 2

loadVirtualSourceFunction · 0.85
handleHotUpdateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected