How to overwrite a package javascript file?

Permalink
Hey everyone,

I need to overwrite a JavaScript file that came with a package that I installed. I attempted to move the file to the root/js folder - and that didn't work, then I moved the file to the Blocks folder keeping the folder structure the same as the original package:
packages/packageName/blocks/js
blocks/packageName/js

And then I started attempting a few other things that ended up not working as well. I looked in the controller file for the package and noticed that the function for page view was not calling the addHeaderItem method for the JavaScript file and I'm wondering if that is why I have not been able to overwrite this file?

Anyway I just want to get my .js file to load instead of the package's .js file, any idea's on how I should go about this? Another post mentioned extending the controller but I am not even sure how to go about setting that up.

alphabetta
 
JohntheFish replied on at Permalink Reply
JohntheFish
If the js is in a block /js folder within the package, then it will be automatically loaded with the block, hence no addHeaderItem.

I don't know if its possible to override these without overriding the entire block.