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: do not transform paths when writing import map to disk #253

Merged
merged 1 commit into from Dec 12, 2022

Conversation

eduardoboucas
Copy link
Member

Which problem is this pull request solving?

We're writing import map files to disk so that integrations like the VSCode plugin can pick them up. In #235 we started resolving these paths relative (by passing an argument to getContents()), but that's a bad idea because we're not surfacing the repository root, and so we're resolving them with the wrong base.

This PR reverts that, such that import maps written to a file get absolute paths.

@eduardoboucas eduardoboucas added the type: bug code to address defects in shipped code label Dec 12, 2022
@eduardoboucas eduardoboucas requested a review from a team December 12, 2022 13:20
@eduardoboucas eduardoboucas merged commit 277dc30 into main Dec 12, 2022
@eduardoboucas eduardoboucas deleted the fix/import-map-writetofile branch December 12, 2022 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants