A typescript nodejs template with minimal dependencies for node>=22
typescript>=5.8
.
I think when it's time to setup a micro node app, there is no need to install
external dependencies like
ts-node
tsx
nodemon
dotenv
chalk
commander
yargs
mocha
jest
,
as node already have them built-in.
We use Node's
--experimental-transform-types
and TypeScript's
--erasableSyntaxOnly
to make things work.
# to get started, run
npm i
# or
node --run preinstall
Also checkout nodejs-purejs-template for node>16.