Repository navigation
Make nx's build runs on next run inside an Nx workspace - #206
Merged
Merged
Conversation
nx failed every build and build-cache run on next ("isn't part of an Nx
workspace"; with only a workspace marker, "Could not find Nx modules"),
so it has never had a result there. nx's prepare now installs the global
nx version locally with --no-save and sets "nx": {} in package.json.
The fixture and lockfile are unchanged, so no install variation is
affected; cleanup already restores package.json and removes node_modules.
Closes #205
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 1 minute. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
6 tasks
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #205.
nx has failed every
buildandbuild-cacherun onnextsince at least 2026-08-02, so it has never had a result there. The cause is that nx needs both of these, andnexthas neither:isn't part of an Nx workspace."nx": {}ornx.json), the global nx fails withCould not find Nx modules.The
runfixture works because it has both (nxdevDependency +"nx": {}).Change
In nx's prepare in
build.shandbuild-cache.shonly (newBENCH_SETUP_NXincommon.sh):setup.sh, withnpm install --no-save --ignore-scripts;npm pkg set nx='{}' --jsonto mark the project as a workspace.The fixture and lockfile don't change, so no install variation on
nextis affected. Addingnxas a devDependency would have changed what all of them measure. The cleanup already restorespackage.json(git checkout) and deletesnode_modules.nx doesn't cache script targets unless configured to, so
build-cachestays like-for-like with turbo, which runs with--no-cache. Both measure Next.js's own.next/cache.Tested
I ran the real
build.shandbuild-cache.shwithBENCH_INCLUDE=nx(2 runs each) on this box, in a sandboxed home with global nx 24.0.6:buildbuild-cacheAfter each run,
package.jsonwas restored and nothing was left behind. The node tests pass.🤖 Generated with Claude Code