diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-02-21 14:12:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-21 14:12:36 -0500 |
commit | a2c1cc5a1a8513b9f6434de2764602ae97e6d8b3 (patch) | |
tree | e0ca38197835482660c169674125a3e6ba2c954d /cli | |
parent | 8aa529f1b8934fc8aefdfd721e363b71a7c9c269 (diff) |
fix(publish): better no-slow-types type discovery (#22517)
Diffstat (limited to 'cli')
-rw-r--r-- | cli/Cargo.toml | 2 | ||||
-rw-r--r-- | cli/util/import_map.rs | 14 |
2 files changed, 9 insertions, 7 deletions
diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 2379f3b62..a8b7a0b25 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -68,7 +68,7 @@ deno_config = "=0.10.0" deno_core = { workspace = true, features = ["include_js_files_for_snapshotting"] } deno_doc = { version = "=0.110.0", features = ["html"] } deno_emit = "=0.38.0" -deno_graph = "=0.68.0" +deno_graph = "=0.68.1" deno_lint = { version = "=0.57.0", features = ["docs"] } deno_lockfile.workspace = true deno_npm = "=0.17.0" diff --git a/cli/util/import_map.rs b/cli/util/import_map.rs index b8b8b9a1a..50a74b285 100644 --- a/cli/util/import_map.rs +++ b/cli/util/import_map.rs @@ -142,12 +142,14 @@ impl<'a> ImportMapUnfurler<'a> { ); if !success { - let start_pos = - parsed_source.text_info().line_start(dep.range.start.line) - + dep.range.start.character; - let end_pos = - parsed_source.text_info().line_start(dep.range.end.line) - + dep.range.end.character; + let start_pos = parsed_source + .text_info() + .line_start(dep.argument_range.start.line) + + dep.argument_range.start.character; + let end_pos = parsed_source + .text_info() + .line_start(dep.argument_range.end.line) + + dep.argument_range.end.character; diagnostic_reporter( ImportMapUnfurlDiagnostic::UnanalyzableDynamicImport { specifier: url.to_owned(), |