Currently, I am configuring a node js backend to operate on TS for the first time within a mono-repo that has a specific folder structure. You can view the structure here.
The package.json file is located in the main directory as shown below:
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"dev": "concurrently \"npx tsc --watch\" \"nodemon -q backend/index.js\""
},
Prior to implementing concurrently and TypeScript, simply running npm dev
would initiate my servers without any issues.
However, after this setup, I now need to use npm run-script dev instead. I'm interested to know why this change occurred and where one could adjust it if necessary.
Thank you in advance.