(base: NodeJS.ProcessEnv = process.env)
| 19 | * object, so every spelling is dropped. `base` is not changed. |
| 20 | */ |
| 21 | export function windowsPowerShellEnv(base: NodeJS.ProcessEnv = process.env): NodeJS.ProcessEnv { |
| 22 | const env: NodeJS.ProcessEnv = {}; |
| 23 | for (const [key, value] of Object.entries(base)) { |
| 24 | if (key.toLowerCase() !== 'psmodulepath') env[key] = value; |
| 25 | } |
| 26 | return env; |
| 27 | } |
| 28 | |
| 29 | /** |
| 30 | * PowerShell statements that load the Archive module of the PowerShell that is |
no outgoing calls
no test coverage detected