Skip to content

Config: resolvePalamedesConfigPath

Functions, types, and exports for Config: resolvePalamedesConfigPath.

Page outline

Resolve an adapter's configPath option against its project root.

Every adapter uses this rule: a relative configPath resolves from projectRoot, and an absolute one stays as written. Returns undefined when no config path is set, so callers keep automatic config discovery.

import { resolvePalamedesConfigPath } from "@palamedes/config"

resolvePalamedesConfigPath(projectRoot: string, configPath: string | undefined): string | undefined

Parameters

NameTypeRequired
projectRootstringYes
configPathstring | undefinedYes

Returns

string | undefined

Source entry on GitHub

Last updated: November 1, 2026