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

Method buildTarget

npm_modules/cli/src/utils/BazelClient.ts:189–197  ·  view source on GitHub ↗
(target: string, extraArgs: string = '')

Source from the content-addressed store, hash-verified

187
188 return targets;
189 }
190
191 async queryTargetsForTag(kind: string): Promise<string[]> {
192 const command = `query 'attr("tags", "${kind}", //...)'`;
193
194 const { stdout: targetStrings } = await this.spawnCommand(command);
195 const targets = targetStrings.split('\n').filter(target => target.length > 0);
196
197 return targets;
198 }
199
200 async query(queryStr: string): Promise<string[]> {

Callers 5

valdiInstallFunction · 0.95
valdiExportFunction · 0.95
valdiPackageFunction · 0.95
valdiBuildFunction · 0.95
hotreloadResolvedTargetFunction · 0.80

Calls 1

spawnCommandMethod · 0.95

Tested by

no test coverage detected