diff --git a/src/build.ts b/src/build.ts index 120a89a7..48cd29c7 100644 --- a/src/build.ts +++ b/src/build.ts @@ -173,9 +173,11 @@ export function buildUpdate(changedFiles: ChangedFile[], context: BuildContext) let requiresLintUpdate = false; for (const changedFile of changedFiles) { - if (changedFile.ext === '.ts' && changedFile.event === 'ch') { - requiresLintUpdate = true; - break; + if (changedFile.ext === '.ts') { + if (changedFile.event === 'change' || changedFile.event === 'add') { + requiresLintUpdate = true; + break; + } } } if (requiresLintUpdate) {