-
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
fix(bundling): set project type correct for buildable vite projects #26420
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 6f36bbe. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 6 targets
Sent with 💌 from NxCloud. |
7382792
to
3790c0b
Compare
5e9fddc
to
4f12847
Compare
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.
left two small comments but looks good
packages/nx/src/plugins/package-json-workspaces/create-nodes.spec.ts
Outdated
Show resolved
Hide resolved
directory.startsWith(nxJson.workspaceLayout.libsDir) | ||
) { | ||
projectConfiguration.projectType = 'library'; | ||
} |
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.
How come there's no third case that handles only appsDir
being set?
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.
In that case, we just don't set projectType
, which was the previous logic. It's either both appsDir
and libsDir
, or only libsDir
. The rest will fall back to project.type
rather than project.data.projectType
.
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.
Sorry, there might be a big merge conflict. Should be good once you rebase.
packages/nx/src/plugins/package-json-workspaces/create-nodes.ts
Outdated
Show resolved
Hide resolved
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. |
This PR:
@nx/vite/plugin
so that it infers the correctprojectType
package-json-workspaces
plugin such thatprojectType
is not inferred isappsDir
andlibsDir
are not settype
property on projects ifprojectType
is missing (due to no longer being inferred by any plugin).Current Behavior
Expected Behavior
Related Issue(s)
Fixes #