mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-14 21:31:50 +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:
parent
4d7ab10fcf
commit
438694bc6e
3 changed files with 5 additions and 5 deletions
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"watch": "src",
|
||||
"ext": "ts",
|
||||
"exec": "ts-node ./src/index.ts"
|
||||
"exec": "node -r ts-node/register ./src/index.ts"
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue