Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/villuminati/pkg-fixer-upper
a clone of patch-package but built in Bun
https://github.com/villuminati/pkg-fixer-upper
bun nodejs
Last synced: 3 months ago
JSON representation
a clone of patch-package but built in Bun
- Host: GitHub
- URL: https://github.com/villuminati/pkg-fixer-upper
- Owner: villuminati
- License: mit
- Created: 2024-07-11T20:01:19.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-07-16T19:52:07.000Z (7 months ago)
- Last Synced: 2024-09-19T02:26:14.102Z (5 months ago)
- Topics: bun, nodejs
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@villuminati/pkg-fixer-upper
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pkg-fixer-upper
This is a clone of [patch-package](https://github.com/ds300/patch-package) but for Bun.
To install this package in your project:
```bash
bun add @villuminati/pkg-fixer-upper
```### How to use this package
Once you have installed this package, you can use it to save diffs of the changes you make to your dependencies.
##### Create diffs
To create diffs of the changes you make to your dependencies, run the following command:
```bash
bun run index.ts [...list of dependencies changed]
```This will create diffs of the changes you make to your dependencies and save them in the `./patches` directory.
##### Apply diffs
Add the following script to your `package.json` file:
```json
{
"scripts": {
"postinstall": "bun run index.ts"
}
}
```Then whenever the dependencies are installed, the post install script will run and apply the diffs of the changes you made to your dependencies.
## Development
### To build this project
To install dependencies:
```bash
bun install
```To run:
```bash
bun run index.ts
```