Skip to content

Conversation

dsherret
Copy link
Member

The "imports" field has higher precedence than "importMap", so we should error when deno add goes to add an "imports" field.

Closes #24264
Closes #24478

@dsherret dsherret requested a review from bartlomieju August 20, 2024 19:30
Copy link
Member

@satyarohith satyarohith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dsherret dsherret merged commit 37279e0 into denoland:main Aug 20, 2024
17 checks passed
@dsherret dsherret deleted the fix_error_import_map_deno_add branch August 20, 2024 20:36
@KnorpelSenf
Copy link
Contributor

Wouldn't it be better to respect the importMap option and modify the import map file instead?

@dsherret
Copy link
Member Author

dsherret commented Aug 22, 2024

@KnorpelSenf see #24264 (comment) for reasoning.

@KnorpelSenf
Copy link
Contributor

That makes sense, thank you for the pointer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cli: import map support for deno add
4 participants