Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(add): error when config file contains importMap field #25115

Merged
merged 2 commits into from
Aug 20, 2024

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

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