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

Function toProjectRootDirectory

packages/cli/src/util/link/services-setup.ts:101–107  ·  view source on GitHub ↗
(
  projectPath: string,
  selectedPath: string
)

Source from the content-addressed store, hash-verified

99}
100
101export function toProjectRootDirectory(
102 projectPath: string,
103 selectedPath: string
104): string | null {
105 const rootDirectory = normalizePath(relative(projectPath, selectedPath));
106 return rootDirectory === '' ? null : rootDirectory;
107}
108
109export async function promptForInferredServicesSetup({
110 client,

Callers 1

setupAndLinkFunction · 0.90

Calls 2

normalizePathFunction · 0.90
relativeFunction · 0.90

Tested by

no test coverage detected