MCPcopy Create free account
hub / github.com/Snapchat/Valdi / projectSync

Function projectSync

npm_modules/cli/src/commands/projectsync.ts:466–472  ·  view source on GitHub ↗
(args: ArgumentsResolver<CommandParameters>)

Source from the content-addressed store, hash-verified

464 const workspaceName = path.basename(executionRoot);
465 const workspaceInfo: BazelWorkspaceInfo = { workspaceName, workspaceRoot, executionRoot };
466
467 const valdiBaseRelativeFilePaths = await bazel.queryBuildOutputs([VALDI_BASE_TARGET.toString()]);
468 const valdiBaseAbsoluteFilePaths = valdiBaseRelativeFilePaths.map(v => {
469 if (isExternalLabel(workspaceInfo, VALDI_BASE_TARGET)) {
470 return path.resolve(getSymlinkedBazelExecutionRoot(workspaceInfo), v);
471 } else {
472 return path.resolve(workspaceRoot, v);
473 }
474 });
475 const baseTsConfigFilePath = getBaseTsConfigFile(valdiBaseAbsoluteFilePaths);

Callers

nothing calls this directly

Calls 5

getAllProjectSyncTargetsFunction · 0.85
runProjectSyncFunction · 0.85
getArgumentOrResolveMethod · 0.80
getArgumentMethod · 0.45

Tested by

no test coverage detected