composer-patches
patch-package
composer-patches | patch-package | |
---|---|---|
10 | 65 | |
1,482 | 9,988 | |
- | - | |
7.6 | 6.3 | |
5 days ago | 23 days ago | |
PHP | TypeScript | |
BSD 3-clause "New" or "Revised" License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
composer-patches
-
Mechanics of (and ethics of) upgrading a PHP Joomla plugin
if you're using composer with joomla, and the plugin is installed via composer, you can commission someone to make the necessary changes, create a git diff patch that encapsulates the changes, then leverage cweagans/composer-patches to make it work. if/when new changes are necessary, they can build a new patch.
-
Laravel considered harmful
I've had problems with libraries using final having an API that isn't customizable enough in a particular way I need because I'm innovating in some way they could never have considered in the past, so my choice ends up either needing to fork the library or monkey patch it with https://github.com/cweagans/composer-patches so I can get rid of final so I can keep using it. They wouldn't accept a change in API or behaviour because it would break things for other users, etc.
-
Thoughts on running patches in production?
There are cool tools to integrate patches from drupal.org (or your own custom patches) into your composer managed drupal website. For example (not drupal specific but works well with drupal+composer): https://github.com/cweagans/composer-patches
-
Is there a way to apply a patch to an AUR package on the fly, without editing the PKGBUILD?
If the PR get's merged, I want `yay` or `pacman` to skip the patch. Ideally it would be declared in a pacman.patches file or similar to what https://github.com/cweagans/composer-patches provides for composer PHP package managment.
-
PSA for macOS users with composer workflows.
This has been an issue for a while, and is outlined here: - https://github.com/cweagans/composer-patches/issues/172#issuecomment-587147692 - https://github.com/cweagans/composer-patches/issues/326
-
Installing patches in Drupal 8
Install a package that allows the composer to work with patches:
- Procedure for critical dependency lagging behind?
-
Best way to handle a bug in a composer package?
And if for some reason you do not want to make a fork, you can also create a composer patch with the help of https://github.com/cweagans/composer-patches
-
Modifying a Package Controller
https://github.com/cweagans/composer-patches - this lets you patch packages when they are pulled in by Composer. I have used it in the past to get minor bugfixes into a project ASAP without having to wait for upstream or forking the entire package.
- troubles with dd or What are best practices for patching Symphony?
patch-package
-
Finding Stars and Affirmations in the Sky with Three.js for Ayra Starr
In order to allow users to use their device as a controller to adjust the position of the camera and find stars, I use the depreciated DeviceOrientationControls by patching it back into Three. In order for DeviceOrientationControls to function, we need access the user to grant access to their device's orientation. I attempt to gain access to this, alongside their camera, during a previous step of the UX using a custom composable I wrote for this purpose. You can see that permission step in the mockup video above. Once this permission is granted, we can initialize our DeviceOrienationControls with a single line.
-
TypeScript NPM Packages Done Right
If you use Yarn, there’s the `yarn patch` command [1], which lets you maintain patches for your dependencies. Even though I try to upstream patches wherever possible, sometimes you just want to apply a quick patch and move on, especially if the dependency is poorly maintained or even worse, deeply nested in your dependency hierarchy. I use `yarn patch` regularly, it’s one of the main reasons why I moved to Yarn in the first place.
If you’re not using Yarn, there seems to be a similar thing on npm, `patch-package`. [2] I never had to use that though.
[1]: https://yarnpkg.com/cli/patch
[2]: https://www.npmjs.com/package/patch-package
- Fix broken node modules instantly
-
How to ignore an error , that happens in a node modules library ?
You can use patch-package to edit the part of the library.
- Jest not recommended to be used in Node.js due to instanceOf operator issues
-
Getting kinda stuck with a build error, any help much appreciated
patch-package
-
Credentials Leak with Knex
NPM doesn't have a patch command, but you can use patch-package to achieve the same result.
-
Why react native is so shit
If there's issue ticket discussing it and someone can fix it, ask for patch file and use patch-package to patch it
- Eas local build, how skip npm install
-
Invariant Violation: ViewPropTypes has been removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types'.
You can try this (I highly recommend you to use the Patch Package library to track changes on any external library that you are using. (https://www.npmjs.com/package/patch-package)
What are some alternatives?
Repman - Repman - PHP Repository Manager: packagist proxy and host for private packages
husky - Git hooks made easy 🐶 woof!
Packagist - Package Repository Website - try https://packagist.com if you need your own -
node-pre-gyp - Node.js tool for easy binary deployment of C++ addons
comments - Native comments for your Laravel application.
vite - Next generation frontend tooling. It's fast!
ComposerRequireChecker - A CLI tool to check whether a specific composer package uses imported symbols that aren't part of its direct composer dependencies
vercel - Develop. Preview. Ship.
WordPress Packagist - WordPress Packagist — manage your plugins with Composer
Faker.js - What really happened with Aaron Swartz?
composer-diff - Compares composer.lock changes and generates Markdown report so you can use it in PR description.
basic-ftp - FTP client for Node.js, supports FTPS over TLS, passive mode over IPv6, async/await, and Typescript.