Skip to content

Commit

Permalink
Template nodemon.json differently for js than for ts.
Browse files Browse the repository at this point in the history
  • Loading branch information
ceejbot committed Jun 8, 2021
1 parent bcfc6c4 commit 81f0b9f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/nodemon.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
"ext": "js,mjs,ts,json,cjs,jsx,tsx",
"ignore": [".git", "node_modules/", "dist/", "coverage/"],
"execMap": {
{% if typescript -%}
"ts": "TS_NODE_FILES=true node -r ts-node/register -r dotenv/config",
"js": "TS_NODE_FILES=true node -r ts-node/register -r dotenv/config"
{% else -%}
"js": "node -r dotenv/config"
{% endif -%}
}
}

0 comments on commit 81f0b9f

Please sign in to comment.