mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -05:00
fix(unstable/publish): repect --no-check
in no-slow-types (#22653)
This commit is contained in:
parent
404422519c
commit
878384aefa
3 changed files with 2 additions and 6 deletions
|
@ -99,8 +99,7 @@ impl TypeChecker {
|
||||||
mut graph: ModuleGraph,
|
mut graph: ModuleGraph,
|
||||||
options: CheckOptions,
|
options: CheckOptions,
|
||||||
) -> Result<(Arc<ModuleGraph>, Diagnostics), AnyError> {
|
) -> Result<(Arc<ModuleGraph>, Diagnostics), AnyError> {
|
||||||
debug_assert_ne!(options.type_check_mode, TypeCheckMode::None);
|
if !options.type_check_mode.is_true() || graph.roots.is_empty() {
|
||||||
if graph.roots.is_empty() {
|
|
||||||
return Ok((graph.into(), Default::default()));
|
return Ok((graph.into(), Default::default()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,6 @@ use crate::args::jsr_url;
|
||||||
use crate::args::CliOptions;
|
use crate::args::CliOptions;
|
||||||
use crate::args::Flags;
|
use crate::args::Flags;
|
||||||
use crate::args::PublishFlags;
|
use crate::args::PublishFlags;
|
||||||
use crate::args::TypeCheckMode;
|
|
||||||
use crate::cache::LazyGraphSourceParser;
|
use crate::cache::LazyGraphSourceParser;
|
||||||
use crate::cache::ParsedSourceCache;
|
use crate::cache::ParsedSourceCache;
|
||||||
use crate::factory::CliFactory;
|
use crate::factory::CliFactory;
|
||||||
|
@ -860,8 +859,7 @@ async fn build_and_check_graph_for_publish(
|
||||||
lib: cli_options.ts_type_lib_window(),
|
lib: cli_options.ts_type_lib_window(),
|
||||||
log_ignored_options: false,
|
log_ignored_options: false,
|
||||||
reload: cli_options.reload_flag(),
|
reload: cli_options.reload_flag(),
|
||||||
// force type checking this
|
type_check_mode: cli_options.type_check_mode(),
|
||||||
type_check_mode: TypeCheckMode::Local,
|
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
Checking for slow types in the public API...
|
Checking for slow types in the public API...
|
||||||
Check file:///[WILDCARD]/publish/successful/mod.ts
|
|
||||||
Publishing @foo/bar@1.0.0 ...
|
Publishing @foo/bar@1.0.0 ...
|
||||||
Successfully published @foo/bar@1.0.0
|
Successfully published @foo/bar@1.0.0
|
||||||
Visit http://127.0.0.1:4250/@foo/bar@1.0.0 for details
|
Visit http://127.0.0.1:4250/@foo/bar@1.0.0 for details
|
||||||
|
|
Loading…
Add table
Reference in a new issue