diff options
| author | Leo Kettmeir <crowlkats@toaxl.com> | 2024-09-18 12:15:13 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-18 21:15:13 +0200 |
| commit | a1d0a427e807959666a6b23ae015e4e04659abf5 (patch) | |
| tree | c588767979d1f7ded1830d042f737774b23addf6 /cli/graph_container.rs | |
| parent | 7a41a939972b701e96cb70cbf0516595fefcae02 (diff) | |
feat: default to TS for file extension and support ext flag in more scenarios (#25472)
Closes #11220
Currently does lint, fmt, and repl
Diffstat (limited to 'cli/graph_container.rs')
| -rw-r--r-- | cli/graph_container.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/graph_container.rs b/cli/graph_container.rs index 9f049946f..211b278e0 100644 --- a/cli/graph_container.rs +++ b/cli/graph_container.rs @@ -65,6 +65,7 @@ impl MainModuleGraphContainer { pub async fn check_specifiers( &self, specifiers: &[ModuleSpecifier], + ext_overwrite: Option<&String>, ) -> Result<(), AnyError> { let mut graph_permit = self.acquire_update_permit().await; let graph = graph_permit.graph_mut(); @@ -76,6 +77,7 @@ impl MainModuleGraphContainer { false, self.cli_options.ts_type_lib_window(), FetchPermissionsOption::AllowAll, + ext_overwrite, ) .await?; graph_permit.commit(); @@ -94,7 +96,7 @@ impl MainModuleGraphContainer { log::warn!("{} No matching files found.", colors::yellow("Warning")); } - self.check_specifiers(&specifiers).await + self.check_specifiers(&specifiers, None).await } pub fn collect_specifiers( |
