MCPcopy Index your code
hub / github.com/Acode-Foundation/Acode / resolveSpawnCommand

Function resolveSpawnCommand

utils/scripts/dev.js:105–113  ·  view source on GitHub ↗
(command)

Source from the content-addressed store, hash-verified

103}
104
105function 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
115function buildSpawnEnv(extra = {}) {
116 const merged = { ...process.env, ...extra };

Callers 3

spawnAsyncFunction · 0.85
launchAppFunction · 0.85
startRspackWatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected