-
Notifications
You must be signed in to change notification settings - Fork 89
patching packages
JC Franco edited this page Dec 3, 2024
·
2 revisions
When working with external dependencies, it’s not unusual to encounter bugs or missing features while working on milestone issues. If the fix or feature is straightforward, we can patch it locally to avoid blocking progress.
To do this, we use patch-package to apply patches in our releases. Please follow their usage steps to create and include a patch.
Additionally, it’s a best practice to notify the dependency maintainers by opening an issue or submitting a PR. This helps us remove patches in the future and rely on the upstream version.
- Patching should be done sparingly, as they introduce maintenance overhead, especially when dependencies are updated.
- Patches should be placed in the top
patchesdirectory. -
patch-packages's README also has additional great information, including updating and applying patches.
- Monorepo
- Global Config
- Coding Conventions
- Testing Conventions
- Patching Packages
- Deprecation Guidance
- Continuous Integration
- GitHub Secrets
- Troubleshoot Build Errors
- Tips and Tricks
- NPM FAQ
- Wiki Conventions
- Styling Conventions
- CSS Transitions
- Restricting User Input
- ItemHidden Property
- What Happens When You Scale Vector-Based Icons
- Internationalization
- Introduction
- Getting Started
- Naming Schema
- Semantic Tokens
- Component Tokens
- Web Platform
- Build
- Documentation
- Testing
- Contributing