For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /reference/sdk/node/config/functions/resolveRuntimePath.md.
  • 简体中文
  • Function: resolveRuntimePath()

    function resolveRuntimePath(runtimeRoot: string, configuredPath: string): string;

    Defined in: node/config/index.ts:311

    将配置项中的相对路径解析为基于工作目录的绝对路径。 若本身已是绝对路径则直接返回;相对路径则相对于 runtimeRoot 进行解析。

    Parameters

    ParameterTypeDescription
    runtimeRootstring运行时根目录。
    configuredPathstring配置中的路径字符串。

    Returns

    string

    规范化的绝对路径。