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

Function normalizeCommand

packages/container/src/index.ts:36–47  ·  view source on GitHub ↗
(command: unknown)

Source from the content-addressed store, hash-verified

34export { prepareCache } from './prepare-cache';
35
36function normalizeCommand(command: unknown): string[] | undefined {
37 if (typeof command === 'string') {
38 return [command];
39 }
40 if (
41 Array.isArray(command) &&
42 command.every(item => typeof item === 'string')
43 ) {
44 return command;
45 }
46 return undefined;
47}
48
49function sanitizeRepository(name: string): string {
50 const sanitized = name

Callers 1

buildFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected