Skip to content

Commit

Permalink
Use ts-node with nodemon in dev environment
Browse files Browse the repository at this point in the history
  • Loading branch information
devadathanmb committed Jan 24, 2024
1 parent dd0f165 commit a676cb9
Show file tree
Hide file tree
Showing 2 changed files with 166 additions and 9 deletions.
172 changes: 164 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"start": "node dist/app.js",
"build": "npx tsc",
"dev": "tsc -w & nodemon dist/app.js"
"dev": "npx nodemon -w *.ts -e ts -x ts-node --files -H -T ./src/app.ts"
},
"nodemonConfig": {
"ignore": [
Expand All @@ -19,6 +19,7 @@
"@types/node": "^20.8.7",
"@types/node-cron": "^3.0.10",
"nodemon": "^3.0.1",
"ts-node": "^10.9.2",
"typescript": "^5.2.2"
},
"dependencies": {
Expand Down

0 comments on commit a676cb9

Please sign in to comment.