()
| 563 | } |
| 564 | |
| 565 | private async findBuildFiles(): Promise<string[]> { |
| 566 | const buildFilePaths: string[] = []; |
| 567 | try { |
| 568 | for await (const file of this.effects.visitFiles(this.deployOptions.config.output)) { |
| 569 | buildFilePaths.push(file); |
| 570 | } |
| 571 | } catch (error) { |
| 572 | if (isEnoent(error)) { |
| 573 | throw new CliError(`No build files found at ${this.deployOptions.config.output}`, {cause: error}); |
| 574 | } |
| 575 | throw error; |
| 576 | } |
| 577 | if (!buildFilePaths.length) { |
| 578 | throw new CliError(`No build files found at ${this.deployOptions.config.output}`); |
| 579 | } |
| 580 | return buildFilePaths; |
| 581 | } |
| 582 | |
| 583 | private async uploadFiles(deployId: string, buildFilePaths: string[]) { |
| 584 | const progressSpinner = this.effects.clack.spinner(); |
no test coverage detected