MCPcopy Create free account
hub / github.com/vercel/vercel / execCommand

Function execCommand

packages/build-utils/src/fs/run-user-scripts.ts:204–213  ·  view source on GitHub ↗
(command: string, options: SpawnOptions = {})

Source from the content-addressed store, hash-verified

202}
203
204export async function execCommand(command: string, options: SpawnOptions = {}) {
205 const opts = { ...options, prettyCommand: command };
206 if (process.platform === 'win32') {
207 await spawnAsync('cmd.exe', ['/C', command], opts);
208 } else {
209 await spawnAsync('sh', ['-c', command], opts);
210 }
211
212 return true;
213}
214
215export function* traverseUpDirectories({
216 start,

Callers 15

buildFunction · 0.90
buildFunction · 0.90
buildFunction · 0.90
buildFunction · 0.90
runPyprojectScriptFunction · 0.90
buildFunction · 0.90
buildStandaloneServerFunction · 0.90
buildFunction · 0.90
downloadInstallAndBundleFunction · 0.90
maybeExecBuildCommandFunction · 0.90
buildFunction · 0.90
buildFunction · 0.90

Calls 1

spawnAsyncFunction · 0.70

Tested by

no test coverage detected