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

Function buildSpawnEnv

utils/scripts/dev.js:115–125  ·  view source on GitHub ↗
(extra = {})

Source from the content-addressed store, hash-verified

113}
114
115function buildSpawnEnv(extra = {}) {
116 const merged = { ...process.env, ...extra };
117 const sanitized = {};
118
119 for (const [key, value] of Object.entries(merged)) {
120 if (!key || key.startsWith("=") || value === undefined) continue;
121 sanitized[key] = String(value);
122 }
123
124 return sanitized;
125}
126
127function spawnAsync(command, args, options) {
128 return new Promise((resolve, reject) => {

Callers 2

spawnAsyncFunction · 0.85
startRspackWatchFunction · 0.85

Calls 1

StringInterface · 0.85

Tested by

no test coverage detected