mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 19:00:45 +00:00
Infra: tighten createGlobalInstallEnv return type
This commit is contained in:
committed by
Onur Solmaz
parent
a32c4e43b4
commit
effda2a342
@@ -171,7 +171,7 @@ export function resolveGlobalInstallSpec(params: {
|
|||||||
|
|
||||||
export async function createGlobalInstallEnv(
|
export async function createGlobalInstallEnv(
|
||||||
env?: NodeJS.ProcessEnv,
|
env?: NodeJS.ProcessEnv,
|
||||||
): Promise<NodeJS.ProcessEnv | undefined> {
|
): Promise<Record<string, string>> {
|
||||||
const pathPrepend = await resolvePortableGitPathPrepend(env);
|
const pathPrepend = await resolvePortableGitPathPrepend(env);
|
||||||
const merged = Object.fromEntries(
|
const merged = Object.fromEntries(
|
||||||
Object.entries(env ?? process.env)
|
Object.entries(env ?? process.env)
|
||||||
|
|||||||
Reference in New Issue
Block a user