I am working on a node.js app and I am using nodemon to run the script, which starts the server. My package.json file begins with something like this:
{
"name": "file-converter-server",
"version": "1.0.0",
"description": "A file format converter app",
"main": "src/config/server.js",
"scripts": {
"start": "nodemon src/config/server.js",
"test" : "echo \"Error: no test specified\" && exit 1"
}
My question is, is there a way apart from starting the server.js script to also call a script which would generate a database (lets say that it is called files.sql)? I wish to do sth like:
"start": "nodemon src/config/server.js" && "files.sql"
Does anyone know if this is possible and how I could proceed with it? I appreciate any help