(command)
| 103 | } |
| 104 | |
| 105 | function resolveSpawnCommand(command) { |
| 106 | if (process.platform !== "win32") return command; |
| 107 | const lower = command.toLowerCase(); |
| 108 | if (lower.endsWith(".cmd") || lower.endsWith(".exe")) return command; |
| 109 | if (lower === "cordova" || lower === "npx" || lower === "npm") { |
| 110 | return `${command}.cmd`; |
| 111 | } |
| 112 | return command; |
| 113 | } |
| 114 | |
| 115 | function buildSpawnEnv(extra = {}) { |
| 116 | const merged = { ...process.env, ...extra }; |
no outgoing calls
no test coverage detected