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:
parent
4d7ab10fcf
commit
438694bc6e
3 changed files with 5 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"watch": "src",
|
"watch": "src",
|
||||||
"ext": "ts",
|
"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",
|
"watch": "src",
|
||||||
"ext": "ts",
|
"ext": "ts",
|
||||||
"exec": "ts-node ./src/index.ts"
|
"exec": "node -r ts-node/register ./src/index.ts"
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,15 +4,15 @@
|
||||||
"description": "",
|
"description": "",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"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",
|
"start-bot-prod": "cross-env NODE_ENV=production node dist/index.js",
|
||||||
"watch-bot": "nodemon --config nodemon-bot.json",
|
"watch-bot": "nodemon --config nodemon-bot.json",
|
||||||
"build": "rimraf dist && tsc",
|
"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",
|
"start-api-prod": "cross-env NODE_ENV=production node dist/api/index.js",
|
||||||
"watch-api": "nodemon --config nodemon-api.json",
|
"watch-api": "nodemon --config nodemon-api.json",
|
||||||
"format": "prettier --write \"./src/**/*.ts\"",
|
"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": "npm run typeorm -- migration:run",
|
||||||
"migrate-rollback": "npm run typeorm -- migration:revert",
|
"migrate-rollback": "npm run typeorm -- migration:revert",
|
||||||
"test": "jest src"
|
"test": "jest src"
|
||||||
|
|
Loading…
Add table
Reference in a new issue