コンテンツにスキップ

resolveInheritedEnv

このコンテンツはまだ日本語訳がありません。

resolveInheritedEnv(parentEnv, inheritEnv?, platform?): Record<string, string>

Defined in: src/core/env.ts:107

Resolve the set of environment variables to inherit from the parent process.

Parameters

parentEnv

Record<string, string | undefined>

The parent process environment (e.g. process.env).

inheritEnv?

EnvInheritance

Inheritance policy. See EnvInheritance.

platform?

string = ''

The runtime platform (e.g. process.platform). When 'win32', variable names are matched case-insensitively.

Returns

Record<string, string>

A record containing only the inherited variables (undefined values removed).