MCPcopy Index your code
hub / github.com/angular/angularfire / spawnPromise

Function spawnPromise

tools/build.ts:290–299  ·  view source on GitHub ↗
(command: string, args: string[])

Source from the content-addressed store, hash-verified

288}
289
290function spawnPromise(command: string, args: string[]) {
291 return new Promise<void>((resolve, reject) => spawn(command, args, { stdio: 'inherit' }).on('close', code => {
292 if (code === 0) {
293 resolve()
294 } else {
295 reject('Build failed.');
296 }
297 })
298 .on('error', reject));
299}
300
301async function compileSchematics() {
302 await esbuild.build({

Callers 1

buildLibraryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected