-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
feat(core): use custom resolution to resolve from source local plugins with artifacts pointing to the outputs #29222
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
Your CI Pipeline Execution ↗ for commit 017b51e ⏳ is in progress.
Last updated at 2024-12-13 15:20:19UTC Sent with 💌 from NxCloud. |
d1c4fe2
to
dc5ce4a
Compare
…s with artifacts pointing to the outputs
…elopment condition to resolve local plugins
dc5ce4a
to
d9bf224
Compare
@@ -138,6 +138,7 @@ export function createNodeFromPackageJson( | |||
const hash = hashObject({ | |||
...json, | |||
root: projectRoot, | |||
bust: 1, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After this PR, with the same file content, a different result is obtained, so we need to bust the cache to ensure projects are processed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should be a comment to explain why this is here and when to update it.
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Current Behavior
Local Nx plugins in the new TS setup can't be resolved properly if they aren't built first. Graph plugins can't be built either because the graph is needed to run a task, but the plugin must be built to construct the graph.
Expected Behavior
Local Nx plugins should work in the new TS setup. A custom resolution is added to resolve the local plugin artifacts from the source.
It will try to use a
development
condition from theexports
entry inpackage.json
if it exists. If it doesn't, it will fall back to guess the source based on the artifact path and some commonly known/used source dirs:.
,./src
,./src/lib
.Related Issue(s)
Fixes #