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

Function runUserScripts

packages/rust/src/lib/utils.ts:18–26  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

16}
17
18export async function runUserScripts(dir: string): Promise<void> {
19 const buildScriptPath = path.join(dir, 'build.sh');
20 const buildScriptExists = fs.existsSync(buildScriptPath);
21
22 if (buildScriptExists) {
23 debug('Running `build.sh`');
24 await runShellScript(buildScriptPath);
25 }
26}
27
28export async function gatherExtraFiles(
29 globMatcher: string | string[] | undefined,

Callers 1

buildHandlerFunction · 0.90

Calls 4

debugFunction · 0.90
runShellScriptFunction · 0.90
joinMethod · 0.45
existsSyncMethod · 0.45

Tested by

no test coverage detected