MCPcopy Create free account
hub / github.com/observablehq/framework / findBuildFiles

Method findBuildFiles

src/deploy.ts:565–581  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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();

Callers 1

getBuildFilePathsMethod · 0.95

Calls 2

isEnoentFunction · 0.85
visitFilesMethod · 0.80

Tested by

no test coverage detected