Infra: tighten createGlobalInstallEnv return type

This commit is contained in:
Richard Poelderl
2026-04-05 21:01:07 +02:00
committed by Onur Solmaz
parent a32c4e43b4
commit effda2a342

View File

@@ -171,7 +171,7 @@ export function resolveGlobalInstallSpec(params: {
export async function createGlobalInstallEnv(
env?: NodeJS.ProcessEnv,
): Promise<NodeJS.ProcessEnv | undefined> {
): Promise<Record<string, string>> {
const pathPrepend = await resolvePortableGitPathPrepend(env);
const merged = Object.fromEntries(
Object.entries(env ?? process.env)