I have a package for npm that I have built locally for a couple of months. In order to have it work properly, it requires access to a PostgreSQL database. Therefore it needs to, preferably, auto-run a script that creates the database and the tables.
Is this possible, and if possible, where can I make such script? I'd like to automate as much as possible when npm install
runs.