Node/Express/TypeScript/Nodemon environment with TS-Node
Node/Express/TypeScript/Nodemon environment with TS-Node
git init
git clone https://github.com/johnbroaddusivccv/typescriptSetup.git
cd typescriptSetup/
Use the package manager npm to install the dependencies, which in this case is only express
I suggest installing TypeScript globally
npm install -g typescript
npm i
We also install TypeScript Locally in our Project, along with Dev Dependencies.
npm i -D typescript ts-node nodemon @types/node @types/express
if the following is not working for you after typescript is global installed
tsc --version
Install npx to get around it
npm i npx
npx tsc --version
Notice the build script is using npx to run tsc
"npx tsc -p ."