3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

Use ts-node/register with node CLI instead of ts-node CLI

See https://www.npmjs.com/package/ts-node#programmatic
Allows us to use advanced node CLI options (if needed)
for our start scripts
This commit is contained in:
Dragory 2019-09-28 19:34:36 +03:00
parent 4d7ab10fcf
commit 438694bc6e
3 changed files with 5 additions and 5 deletions

View file

@ -1,5 +1,5 @@
{
"watch": "src",
"ext": "ts",
"exec": "ts-node ./src/api/index.ts"
"exec": "node -r ts-node/register ./src/api/index.ts"
}

View file

@ -1,5 +1,5 @@
{
"watch": "src",
"ext": "ts",
"exec": "ts-node ./src/index.ts"
"exec": "node -r ts-node/register ./src/index.ts"
}

View file

@ -4,15 +4,15 @@
"description": "",
"private": true,
"scripts": {
"start-bot-dev": "ts-node src/index.ts",
"start-bot-dev": "node -r ts-node/register src/index.ts",
"start-bot-prod": "cross-env NODE_ENV=production node dist/index.js",
"watch-bot": "nodemon --config nodemon-bot.json",
"build": "rimraf dist && tsc",
"start-api-dev": "ts-node src/api/index.ts",
"start-api-dev": "node -r ts-node/register src/api/index.ts",
"start-api-prod": "cross-env NODE_ENV=production node dist/api/index.js",
"watch-api": "nodemon --config nodemon-api.json",
"format": "prettier --write \"./src/**/*.ts\"",
"typeorm": "ts-node ./node_modules/typeorm/cli.js",
"typeorm": "node -r ts-node/register ./node_modules/typeorm/cli.js",
"migrate": "npm run typeorm -- migration:run",
"migrate-rollback": "npm run typeorm -- migration:revert",
"test": "jest src"