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

Function buildProjectSyncs

npm_modules/cli/src/commands/projectsync.ts:127–133  ·  view source on GitHub ↗
(bazel: BazelClient, workspaceRoot: string, projectSyncTargets: readonly string[])

Source from the content-addressed store, hash-verified

125}
126
127async function buildProjectSyncs(bazel: BazelClient, workspaceRoot: string, projectSyncTargets: readonly string[]) {
128 await bazel.buildTargets(projectSyncTargets);
129 const buildOutputs = await bazel.queryBuildOutputs(projectSyncTargets);
130 const filteredBuildOutputs = buildOutputs.filter(c => c.endsWith('/projectsync.json')).sort(byString(v => v));
131
132 return await Promise.all(filteredBuildOutputs.map(b => parseProjectSyncJSON(path.resolve(workspaceRoot, b))));
133}
134
135async function syncPathsByLabel(
136 client: BazelClient,

Callers 2

syncPathsByLabelFunction · 0.85
runProjectSyncFunction · 0.85

Calls 9

byStringFunction · 0.90
parseProjectSyncJSONFunction · 0.85
buildTargetsMethod · 0.80
queryBuildOutputsMethod · 0.80
filterMethod · 0.80
sortMethod · 0.65
allMethod · 0.65
resolveMethod · 0.65
mapMethod · 0.45

Tested by

no test coverage detected