From 31154ff95899166a2535fc859c1fca2cbf19d422 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Sat, 8 Jun 2024 20:05:28 -0400 Subject: fix(check): attempt to resolve types from pkg before `@types` pkg (#24152) I've been meaning to fix this for ages, but I finally ran into it here: https://github.com/dsherret/ts-ast-viewer/actions/runs/9432038675/job/25981325408 We need to resolve the `@types` package as a fallback instead of eagerly resolving it. --- ext/node/ops/require.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'ext/node/ops') diff --git a/ext/node/ops/require.rs b/ext/node/ops/require.rs index 3e1f1c6ae..3fde6c31a 100644 --- a/ext/node/ops/require.rs +++ b/ext/node/ops/require.rs @@ -198,7 +198,6 @@ pub fn op_require_resolve_deno_dir( &ModuleSpecifier::from_file_path(&parent_filename).unwrap_or_else(|_| { panic!("Url::from_file_path: [{:?}]", parent_filename) }), - NodeResolutionMode::Execution, ) .ok() .map(|p| p.to_string_lossy().to_string()) -- cgit v1.2.3