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

Commit e13b857

Browse files
huerlisidanbucholtz
authored andcommitted
fix(build): fix test if linting should trigger on file change (#719)
* fix(build): fix test if linting should trigger on file change * feat(lint): also lint files after being added, not just on change
1 parent f805bf6 commit e13b857

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/build.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,11 @@ export function buildUpdate(changedFiles: ChangedFile[], context: BuildContext)
173173

174174
let requiresLintUpdate = false;
175175
for (const changedFile of changedFiles) {
176-
if (changedFile.ext === '.ts' && changedFile.event === 'ch') {
177-
requiresLintUpdate = true;
178-
break;
176+
if (changedFile.ext === '.ts') {
177+
if (changedFile.event === 'change' || changedFile.event === 'add') {
178+
requiresLintUpdate = true;
179+
break;
180+
}
179181
}
180182
}
181183
if (requiresLintUpdate) {

0 commit comments

Comments
 (0)