Including add-on in package

Hi,
I’m using @pdftron/pdfnet-node npm package with CAD Module.
For now I manually download and extract the package in a sub-directory within my project directory. Then in my code I use PDFNet.addResourceSearchPath() to let Pdftron find the module.
I’d like to know if there’s any way I can add a module through npm install.
Or if I want to create my customized package, to copy the module content as part of package installation, how should I handle this scenario?
Thanks

Hi,

To better help with your question, please answer the following:

  1. Which pdftron product and plaftorm are you using? WebViewer, PDFNet Windows, PDFNet Linux, etc.
  2. How does adding modules through npm install affect you or your users?

I’m using @pdftron/pdfnet-node npm package which I think it means I’m using PDFNet. The platform on which I’m developing is Windows, but the target platform for deployment is Linux.
If the module I’m using gets installed through npm installation, then it’s not necessary for every single developer to manually download the module and copy it to the required directory.