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 ourterms of serviceand privacy statement.We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(deno.json-importMap[deno add]): support inserting added dependencies into import map file when specified instead of deno.json #24478

Closed

Conversation

HasanAlrimawi
Copy link
Contributor

This PR servesas a starting pointfor addressing issue#24264.

Flow
when usingdeno add "something",the program checksdeno.jsonto see if it includesimportMap keyand if it does, the program adds the dependency there. However, ifdeno.jsondoesn't include the key, then the program adds the dependency under the imports key indeno.json.

Further work
If this feature is to be fully implemented using the approach in this PR, then the implementer should:

  1. CheckimportMap fileif it already includes the dependency to be added to avoid redundancy.
  2. Handle mistyped/incorrectly-referencedimportMap file.
  3. Apply further testing on different scenarios, as this is a starting point solution.

@bartlomieju
Copy link
Member

@dsherretcan you please take a look at this one?

@dsherret
Copy link
Member

@HasanAlrimawisorry, but we're going to decline this one for now. See the reasoning in#24264 (comment)

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.

3 participants