Function
spawnPromise
(command: string, args: string[])
Source from the content-addressed store, hash-verified
| 288 | } |
| 289 | |
| 290 | function 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 | |
| 301 | async function compileSchematics() { |
| 302 | await esbuild.build({ |
Tested by
no test coverage detected