Skip to content
New issue

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

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

Already on GitHub? # to your account

fix(compile): support workspace members importing other members #24909

Merged
merged 9 commits into from
Aug 7, 2024

Conversation

dsherret
Copy link
Member

@dsherret dsherret commented Aug 6, 2024

Workspace resolution between members was broken because this resolution occured on load in deno graph. I moved it to deno_config (to be renamed deno_workspace) in order to just do it in the WorkspaceResolver. I think this makes sense, but I'm not entirely sure. Regardless, it fixes the deno compile bug.

Closes #24901

"value": format!(
"**Resolved Dependency**\n\n**Code**: file​://{}\n",
temp_dir.uri().join("project1/mod.ts").unwrap().path(),
),
Copy link
Member Author

Choose a reason for hiding this comment

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

This seems worse, but also not a big deal? 🤷

"asdfasdfasdf/": "jsr:/asdfasdfasdf@^0.0.0/",
"qwerqwer": "jsr:qwerqwer@^0.0.0",
"qwerqwer/": "jsr:/qwerqwer@^0.0.0/"
"chalk/": "npm:/chalk/"
Copy link
Member Author

Choose a reason for hiding this comment

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

This is no longer in the synthetic import map.

@dsherret dsherret marked this pull request as ready for review August 6, 2024 16:13
@dsherret dsherret enabled auto-merge (squash) August 7, 2024 07:41
@dsherret dsherret merged commit 04473c0 into denoland:main Aug 7, 2024
17 checks passed
@dsherret dsherret deleted the fix_compile_workspace_members branch August 7, 2024 07:49
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

deno compile fails for workspace members referencing other members
2 participants