Hi Mignonne Maxwell,
Placing your package.json into the "actions" folder is not a good way to do that. Instead, you should create a new module specific for configuring the external library used in JS Actions. To create that module, please refer to the implementation of NanoflowCommons. Then you can build this module and publish it to Marketplace for other applications to reuse.
It is recommended officially by Mendix documentation for Using External Dependencies in the Browser.
Regards,
Dat