()
| 862 | } |
| 863 | |
| 864 | async 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 | |
| 875 | async function amendNodePathWithPnpmNodeModules(nodePath?: string): Promise<string | undefined> { |
| 876 | const pnpmModulesPath = await findPnpmNodeModulesPath(); |
no test coverage detected
searching dependent graphs…