Mabeh Al-Zuq Yadeek
Mabeh Al-Zuq Yadeek

Reputation: 84

How would I go about editing a meteor package I added?

Specifically, I just want to remove a console.log line from my ChartsJS file, since it kind of slows down my app just a little bit.

I found the file responsible in .meteor/local/build/programs/web.browser/packages path. The changes work right after I save, but then revert back to original without the changes, so the changes I make are only temporary.

Note that the packages I use are from AtmosphereJS.

Upvotes: 0

Views: 23

Answers (1)

David Weldon
David Weldon

Reputation: 64312

Here's the procedure for modifying an existing package, and optionally getting your changes integrated back into the original:

  1. Open an issue on github and let the maintainer know what's up.
  2. Fork the code, and add make your modifictions. Keep this version as a local package.
  3. Submit a pull request for the changes.

If all goes well, your PR will be accepted and everyone can benefit from the change. In the worst case, you'll still have a local copy that you can use in your app.

Upvotes: 2

Related Questions