Reputation: 9157
So, I'm using a npm package in a meteor app. It's imported in a .npm directory, and I want to add a fix to the package.
I could send the fix to the author of the package, but that will take a certain time to be pushed. I could copy paste the whole fixed code in my project but this looks a bit dirty.
So is there a way/best practice to do this?
Upvotes: 1
Views: 318
Reputation: 75965
You can fork the repository and apply the updates, then use the git of your repository in your smart.json file e.g the below for 'meteor router'
{
packages : {
"router" : {
git : "https://github.com/hypno2000/meteor-router.git"
}
}
The original repository is at https://github.com/tmeasday/meteor-router.git
so meteorite will use the fork instead but keep intact everything else such as dependencies but use your fork where you tell it to.
Then use mrt update
to fetch the fork
Should the author accept the push request, just remove the git:
line and do mrt update
again to resume using the original package
Upvotes: 1