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

Method findLeastRecentBuildMtimeMs

src/deploy.ts:553–563  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

551 }
552
553 private async findLeastRecentBuildMtimeMs(): Promise<number> {
554 let leastRecentMtimeMs = Infinity;
555 for await (const file of this.effects.visitFiles(this.deployOptions.config.output)) {
556 const joinedPath = join(this.deployOptions.config.output, file);
557 const stat = await this.effects.stat(joinedPath);
558 if (stat.mtimeMs < leastRecentMtimeMs) {
559 leastRecentMtimeMs = stat.mtimeMs;
560 }
561 }
562 return leastRecentMtimeMs;
563 }
564
565 private async findBuildFiles(): Promise<string[]> {
566 const buildFilePaths: string[] = [];

Callers 1

getBuildFilePathsMethod · 0.95

Calls 2

visitFilesMethod · 0.80
statMethod · 0.80

Tested by

no test coverage detected