A Sample Node.js + TypeScript Project for Telegram Bot Developers
You need pnpm to install the node_modules (the dependencies of project):
$ cd /path/to/project
$ pnpm i
If you won't use pnpm as the package manager:
$ cd /path/to/project
$ rm -rf node_modules/ pnpm-lock.yaml
$ npm i # or yarn
Script | Description |
---|---|
build |
Transpile/Compile typescript files into javascript files with the target ECMA standard. |
start |
Execute the project build files using pure node.js (without ts-node). |
dev |
Execute the project typescript files using nodemon + ts-node. |