summaryrefslogtreecommitdiff
path: root/cli/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/main.rs')
-rw-r--r--cli/main.rs14
1 files changed, 12 insertions, 2 deletions
diff --git a/cli/main.rs b/cli/main.rs
index 6a6a742bb..97b902ee6 100644
--- a/cli/main.rs
+++ b/cli/main.rs
@@ -695,7 +695,12 @@ async fn create_graph_and_maybe_check(
.await,
);
- graph_valid(&graph, ps.flags.check != CheckFlag::None)?;
+ let check_js = ps
+ .maybe_config_file
+ .as_ref()
+ .map(|cf| cf.get_check_js())
+ .unwrap_or(false);
+ graph_valid(&graph, ps.flags.check != CheckFlag::None, check_js)?;
graph_lock_or_exit(&graph);
if ps.flags.check != CheckFlag::None {
@@ -1030,7 +1035,12 @@ async fn run_with_watch(flags: Flags, script: String) -> Result<i32, AnyError> {
None,
)
.await;
- graph_valid(&graph, ps.flags.check != flags::CheckFlag::None)?;
+ let check_js = ps
+ .maybe_config_file
+ .as_ref()
+ .map(|cf| cf.get_check_js())
+ .unwrap_or(false);
+ graph_valid(&graph, ps.flags.check != flags::CheckFlag::None, check_js)?;
// Find all local files in graph
let mut paths_to_watch: Vec<PathBuf> = graph