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
189 async buildTarget(target: string, extraArgs: string = ''): Promise<CommandResult> {
190 // Use 'inherit' as the stdio mode by default as usually the output irrelevant
191 // and only the success/failure matters
192 const commandBuildTarget = `build ${target} ${extraArgs}`;
193
194 return await this.spawnCommand(commandBuildTarget, 'inherit').catch(() => {
195 throw new CliError(`Failed to build target: ${target}`);
196 });
197 }
198
199 async buildTargets(targets: readonly string[]): Promise<CommandResult> {
200 // Use 'inherit' as the stdio mode by default as usually the output irrelevant

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