(
fsPath: string,
changed: Set<string>,
removed: Set<string>
)
| 464 | } |
| 465 | |
| 466 | async handleFileModified( |
| 467 | fsPath: string, |
| 468 | changed: Set<string>, |
| 469 | removed: Set<string> |
| 470 | ): Promise<void> { |
| 471 | const name = relative(this.cwd, fsPath); |
| 472 | try { |
| 473 | this.files[name] = await FileFsRef.fromFsPath({ fsPath }); |
| 474 | fileChanged(name, changed, removed); |
| 475 | output.debug(`File modified: ${name}`); |
| 476 | } catch (err: unknown) { |
| 477 | if (isErrnoException(err) && err.code === 'ENOENT') { |
| 478 | output.debug(`File modified, but has since been deleted: ${name}`); |
| 479 | fileRemoved(name, this.files, changed, removed); |
| 480 | } else { |
| 481 | throw err; |
| 482 | } |
| 483 | } |
| 484 | } |
| 485 | |
| 486 | async updateBuildMatches( |
| 487 | vercelConfig: VercelConfig, |
no test coverage detected