chore(gitignore): remove nitrogen folder#905
chore(gitignore): remove nitrogen folder#905moskalakamil wants to merge 1 commit intocallstack:mainfrom
nitrogen folder#905Conversation
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: Clean Script Breaks Git Workflow
Removing nitrogen/ from .gitignore conflicts with the react-native-builder-bob configuration in package.json which has "clean": "nitrogen/". This means the build tool will delete the nitrogen/ folder during clean operations, but since it's now tracked in git, developers will constantly have uncommitted deletions, causing merge conflicts and a poor developer experience.
packages/create-react-native-library/templates/common/$.gitignore#L83-L86
|
Thanks for the PR. However, the note is not entirely correct
Committing generated code to git is not needed for this to work. The generated code is always generated when publishing the package with the Committing generated files adds noise to PR reviews - so the only reason you'd commit them is if that's desirable for you and you want to review what changed in the generated code. Typically, it's not common for people to review changes in generated files, but you can always change the default if that's what you want. So I'm closing the PR. |
|
Yea I agree with @satya164 is saying for this repository. My repos (nitro itself, and my current nitro libraries) still commit the If you just want to use Nitro to build a module, you likely don't care about the So I think we can agree to;
And at some point I will probably remove it too. |
|
I just see a tiny problem with the approach that we don't commit it; the If it for some reason fails, we don't want to push a package to npm that contains a broken I believe |
Summary
As Nitro Modules docs recommend, this folder should be tracked in git to improve DX

(https://nitro.margelo.com/docs/nitrogen#2-generate-native-specs)
Note
Removes
nitrogen/from the template.gitignoreso the folder is tracked.Written by Cursor Bugbot for commit 862aa8c. This will update automatically on new commits. Configure here.