mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-05 10:14:30 +00:00
15 lines
565 B
TypeScript
15 lines
565 B
TypeScript
import { fileURLToPath } from "node:url";
|
|
import { dirname, resolve } from "node:path";
|
|
|
|
/**
|
|
* Absolute path to the Terraform module shipped with this adapter.
|
|
*
|
|
* This module is built as `dist/terraform.js`, preserving the same one-level
|
|
* relationship to the package-owned `terraform/` directory as the source
|
|
* file. Consumers should use this API instead of resolving package.json,
|
|
* which is not a stable public subpath.
|
|
*/
|
|
export function getTerraformModuleDir(): string {
|
|
return resolve(dirname(fileURLToPath(import.meta.url)), "..", "terraform");
|
|
}
|