MCPcopy Create free account
hub / github.com/TanStack/cli / handleChange

Method handleChange

packages/cli/src/dev-watch.ts:187–197  ·  view source on GitHub ↗
(_type: ChangeEvent['type'], filePath: string)

Source from the content-addressed store, hash-verified

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) {

Callers 1

startWatcherMethod · 0.95

Calls 2

sizeMethod · 0.80
addMethod · 0.80

Tested by

no test coverage detected