Rerun eslint rules when tsconfig changes

This commit is contained in:
Damien Elmes 2023-05-11 15:13:49 +10:00
parent 6f650dd7df
commit 28021b76af

View File

@ -262,7 +262,7 @@ impl BuildAction for Eslint<'_> {
build.add_inputs("eslint", inputs![":node_modules:eslint"]); build.add_inputs("eslint", inputs![":node_modules:eslint"]);
build.add_inputs("eslint_rc", &self.eslint_rc); build.add_inputs("eslint_rc", &self.eslint_rc);
build.add_inputs("in", &self.inputs); build.add_inputs("in", &self.inputs);
build.add_inputs("", inputs!["yarn.lock"]); build.add_inputs("", inputs!["yarn.lock", "ts/tsconfig.json"]);
build.add_variable("fix", if self.fix { "--fix" } else { "" }); build.add_variable("fix", if self.fix { "--fix" } else { "" });
build.add_variable("folder", self.folder); build.add_variable("folder", self.folder);
let hash = simple_hash(self.folder); let hash = simple_hash(self.folder);