Also i will use as a cheatsheet later on.
The files and challanges based on this book:
No BS TS, The Book” © 2021, Jack Herrington
npm init -y
npm add TypeScript ts-node -D
npx tsc - init
The above command will add a nice default setup for a typescript project.
-
Use FNM for Node.js version management
-
via .npmrc you can control the version
node -v > .npmrc
-
Run individual test files:
npx ts-node .\src\challanges\challange-2\filter.ts