I’m trying to add a
postbuild script to the project that installed my module. It works when manually added, but I’d prefer it happen automatically after my module has been installed.
From what I understand, I need to add a
postinstall entry in my module’s
package.json pointing to a file like
"postinstall": "node src/postinstall.js". But from there I’m at a loss how to modify the top level project’s
package.json. Any help would be appreciated.