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

    function findMonorepoRoot(startDir: string): string | null;

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

    从 startDir 向上查找 monorepo 根(package.json#name === sfmc-monorepo)。 找不到则返回 null(例如从 npm 装到 node_modules 的独立包)。

    Parameters

    ParameterType
    startDirstring

    Returns

    string | null