Skip to content

chore(git): Add types directory to .gitignore#78

Merged
hristoterezov merged 1 commit intomasterfrom
chore/gitignore-types-directory
Oct 17, 2025
Merged

chore(git): Add types directory to .gitignore#78
hristoterezov merged 1 commit intomasterfrom
chore/gitignore-types-directory

Conversation

@hristoterezov
Copy link
Member

Summary

Adds the types/ directory to .gitignore to prevent auto-generated TypeScript declaration files from being committed to the repository.

Changes

  • Added types to .gitignore

Rationale

The types/ directory contains auto-generated TypeScript declaration files created by the gen-types npm script (which runs tsc to generate .d.ts files). These generated files should not be committed to version control because:

  1. They are build artifacts that can be regenerated at any time
  2. They increase repository size unnecessarily
  3. They can cause merge conflicts during development
  4. The prepack script already generates them before publishing

Test Plan

  • Verify types/ directory is ignored by git
  • Verify npm run gen-types still works correctly
  • Confirm generated files don't appear in git status

The types/ directory contains auto-generated TypeScript declaration files
from the build process. These files should not be committed to the repository
as they are generated by the gen-types npm script.
@hristoterezov hristoterezov merged commit 0ee95f4 into master Oct 17, 2025
1 check passed
@hristoterezov hristoterezov deleted the chore/gitignore-types-directory branch October 17, 2025 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants