Resolve the Terraform module dir shipped with @hyperframes/gcp-cloud-run.
()
| 268 | |
| 269 | /** Resolve the Terraform module dir shipped with @hyperframes/gcp-cloud-run. */ |
| 270 | function terraformDir(): string { |
| 271 | const require = createRequire(import.meta.url); |
| 272 | const pkgJson = require.resolve("@hyperframes/gcp-cloud-run/package.json"); |
| 273 | return join(dirname(pkgJson), "terraform"); |
| 274 | } |
| 275 | |
| 276 | function run(cmd: string, cmdArgs: string[], opts: { cwd?: string } = {}): void { |
| 277 | const res = spawnSync(cmd, cmdArgs, { stdio: "inherit", cwd: opts.cwd }); |
no outgoing calls
no test coverage detected