(_type: ChangeEvent['type'], filePath: string)
| 185 | } |
| 186 | |
| 187 | private handleChange(_type: ChangeEvent['type'], filePath: string): void { |
| 188 | const relativePath = path.relative(this.options.watchPath, filePath) |
| 189 | // Log change only once for the first file in debounce queue |
| 190 | if (this.debounceQueue.size() === 0) { |
| 191 | this.log.section('change detected') |
| 192 | this.log.subsection(`└─ ${relativePath}`) |
| 193 | } else { |
| 194 | this.log.subsection(`└─ ${relativePath}`) |
| 195 | } |
| 196 | this.debounceQueue.add(filePath) |
| 197 | } |
| 198 | |
| 199 | private async rebuild(changes: Set<string>): Promise<void> { |
| 200 | if (this.isBuilding) { |
no test coverage detected