MCPcopy Create free account
hub / github.com/arctic-cli/interface / resolveProjectConfigPath

Function resolveProjectConfigPath

packages/arctic/src/cli/claude-import.ts:535–541  ·  view source on GitHub ↗
(projectRoot: string)

Source from the content-addressed store, hash-verified

533}
534
535async function resolveProjectConfigPath(projectRoot: string) {
536 const jsonc = path.join(projectRoot, ".arctic", "arctic.jsonc")
537 const json = path.join(projectRoot, ".arctic", "arctic.json")
538 if (await Bun.file(jsonc).exists()) return jsonc
539 if (await Bun.file(json).exists()) return json
540 return jsonc
541}
542
543async function resolveGlobalConfigPath() {
544 const jsonc = path.join(Global.Path.config, "arctic.jsonc")

Callers 2

Calls 1

existsMethod · 0.45

Tested by

no test coverage detected