MCPcopy
hub / github.com/triggerdotdev/trigger.dev / gatherProcessEnv

Function gatherProcessEnv

packages/cli-v3/src/commands/dev.tsx:864–873  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

862}
863
864async function gatherProcessEnv() {
865 const env = {
866 ...process.env,
867 NODE_ENV: process.env.NODE_ENV ?? "development",
868 NODE_PATH: await amendNodePathWithPnpmNodeModules(process.env.NODE_PATH),
869 };
870
871 // Filter out undefined values
872 return Object.fromEntries(Object.entries(env).filter(([key, value]) => value !== undefined));
873}
874
875async function amendNodePathWithPnpmNodeModules(nodePath?: string): Promise<string | undefined> {
876 const pnpmModulesPath = await findPnpmNodeModulesPath();

Callers 1

setupFunction · 0.70

Calls 2

filterMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…