@karmaniverous/get-dotenv
    Preparing search index...

    Function resolveTemplatesRoot

    • Resolve the absolute path to the shipped templates directory.

      This must be anchored to the get-dotenv package root, not the current working directory, because init is typically executed from within a consumer project.

      Parameters

      • importMetaUrl: string

      Returns Promise<string>

      Resolution strategy:

      • Determine the nearest package root relative to the current module (import.meta.url).
      • Return <packageRoot>/templates.

      This works for:

      • local source runs (repo root),
      • installed package runs (node_modules/@karmaniverous/get-dotenv),
      • shared-chunk dist outputs (modules may live under dist/chunks/).