diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-01-21 23:47:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-21 22:47:46 +0000 |
commit | 568337f3f43ef050cbbd95995f94e39663530ab4 (patch) | |
tree | 368f7d0740073f7b33e8da9aeada13bbdd95f595 /cli/args/mod.rs | |
parent | 35fc6f3ab91a9f9fdecff5072677f12cde295f3a (diff) |
fix: remove conditional unstable type-checking from other commands (#21991)
It appears I missed this in https://github.com/denoland/deno/pull/21825.
Diffstat (limited to 'cli/args/mod.rs')
-rw-r--r-- | cli/args/mod.rs | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/cli/args/mod.rs b/cli/args/mod.rs index c07df3a80..2657ed385 100644 --- a/cli/args/mod.rs +++ b/cli/args/mod.rs @@ -799,26 +799,11 @@ impl CliOptions { } pub fn ts_type_lib_window(&self) -> TsTypeLib { - if self.flags.unstable - || !self.flags.unstable_features.is_empty() - || self - .maybe_config_file - .as_ref() - .map(|f| !f.json.unstable.is_empty()) - .unwrap_or(false) - { - TsTypeLib::UnstableDenoWindow - } else { - TsTypeLib::DenoWindow - } + TsTypeLib::DenoWindow } pub fn ts_type_lib_worker(&self) -> TsTypeLib { - if self.flags.unstable { - TsTypeLib::UnstableDenoWorker - } else { - TsTypeLib::DenoWorker - } + TsTypeLib::DenoWorker } pub fn cache_setting(&self) -> CacheSetting { |