scripts for backend code example
Example: scripts for the backend
"scripts": {
"build": "rimraf dist && tsc",
"preserve": "npm run build",
"serve": "cross-env NODE_ENV=development concurrently \"tsc --watch\" \"nodemon -q dist/index.js\"",
"prestart": "npm run build",
"start": "cross-env NODE_ENV=production node dist/index.js",
"test": "echo \"Error: no test specified\" && exit 1"
},