Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

fix(build): fix test if linting should trigger on file change #719

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,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) {
Expand Down