chore: Rename nitro-codegen to nitrogen#891
Merged
satya164 merged 1 commit intocallstack:mainfrom Oct 4, 2025
Merged
Conversation
There was a problem hiding this comment.
This PR is being reviewed by Cursor Bugbot
Details
Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.
To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.
Bug: Missing Script Reference Causes Build Failures
The nitrogen script was removed from package.json, but react-native-builder-bob's configuration still references it. This causes build failures for nitro-modules and nitro-view projects when builder-bob attempts to execute the missing script.
packages/create-react-native-library/templates/common/$package.json#L49-L53
github-merge-queue bot
pushed a commit
that referenced
this pull request
Oct 15, 2025
<!-- Please provide enough information so that others can review your pull request. --> <!-- Keep pull requests small and focused on a single change. --> ### Summary I did a mistake here #891. I shouldn't have removed `"nitrogen":"nitrogen" `. During Release `npm run nitrogen` is called i think. This is breaking release it in case of nitro modules. This also fixes one more thing I noticed during nitro views the nitrogen wont be created in files in package.json (verified with `npm pack --dry-run`). <img width="307" height="349" alt="Screenshot 2025-10-15 at 1 15 41 PM" src="https://github.com/user-attachments/assets/21cd0ecf-7b4d-4a2a-b666-6b5f0cc97925" /> Nitro modules require nitrogen to be present in packaged. This would fix below issue <img width="400" height="600" alt="image" src="https://github.com/user-attachments/assets/82098fd8-05b6-4849-8868-0f657e3c7e23" /> <!-- What existing problem does the pull request solve? Can you solve the issue with a different approach? --> ### Test plan <!-- List the steps with which we can test this change. Provide screenshots if this changes anything visual. --> N/A
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.
Summary
Nitro-codegen is renamed to nitrogen .

This fixes below issue
Test plan
N/A
Note
In the template package.json, switch devDependency from
nitro-codegentonitrogenand remove thenitrogenscript.packages/create-react-native-library/templates/common/$package.json:nitro-codegenwithnitrogenwhennitro-modules/nitro-viewis selected."nitrogen": "nitro-codegen"entry.Written by Cursor Bugbot for commit 7c96b49. This will update automatically on new commits. Configure here.