summaryrefslogtreecommitdiff
path: root/cli/global_state.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/global_state.rs')
-rw-r--r--cli/global_state.rs29
1 files changed, 18 insertions, 11 deletions
diff --git a/cli/global_state.rs b/cli/global_state.rs
index cd04d03e6..e9988f4b5 100644
--- a/cli/global_state.rs
+++ b/cli/global_state.rs
@@ -170,17 +170,24 @@ impl GlobalState {
let allow_js = should_allow_js(&module_graph_files);
if should_compile {
- self
- .ts_compiler
- .compile(
- self.clone(),
- &out,
- target_lib,
- permissions,
- module_graph,
- allow_js,
- )
- .await?;
+ if self.flags.no_check {
+ self
+ .ts_compiler
+ .transpile(self.clone(), permissions, module_graph)
+ .await?;
+ } else {
+ self
+ .ts_compiler
+ .compile(
+ self.clone(),
+ &out,
+ target_lib,
+ permissions,
+ module_graph,
+ allow_js,
+ )
+ .await?;
+ }
}
if let Some(ref lockfile) = self.lockfile {