-
Notifications
You must be signed in to change notification settings - Fork 2.6k
fix(js): check package.json for name when project.json exists but has no name #31887
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
base: master
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Command | Status | Duration | Result |
---|---|---|---|
nx affected --targets=lint,test,build,e2e,e2e-c... |
❌ Failed | 46m 20s | View ↗ |
nx run-many -t check-imports check-commit check... |
✅ Succeeded | 15s | View ↗ |
nx-cloud record -- nx-cloud conformance:check |
✅ Succeeded | 2s | View ↗ |
nx-cloud record -- nx format:check |
✅ Succeeded | 3s | View ↗ |
nx-cloud record -- nx sync:check |
✅ Succeeded | 2s | View ↗ |
nx documentation |
✅ Succeeded | 2m 3s | View ↗ |
☁️ Nx Cloud last updated this comment at 2025-07-12 04:05:23
UTC
@claude fix the formatting in this PR |
Claude encountered an error —— View job
I'll analyze this and get back to you. |
@claude please format these changes. |
Claude encountered an error —— View job
I'll analyze this and get back to you. |
… no name When a project.json exists but has no name field, now falls back to checking package.json for project name in build and watch deps targets. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
3e4447b
to
8340f6a
Compare
Current Behavior
When a project has a
project.json
file but noname
field, theaddBuildAndWatchDepsTargets
function inpackages/js/src/plugins/typescript/util.ts
returns early without creating build and watch deps targets, even if the project has a valid name in itspackage.json
.Expected Behavior
The function should fall back to checking
package.json
for the project name whenproject.json
exists but has noname
field, allowing the build and watch deps targets to be created properly.Related Issue(s)
This fixes an issue where projects with
project.json
files missing thename
field would not get proper build and watch dependency targets generated.🤖 Generated with Claude Code