From e522324196e20e8b13c7490e0cb8ae1f82edbcac Mon Sep 17 00:00:00 2001 From: xHyroM Date: Sun, 9 Apr 2023 15:53:10 +0200 Subject: [PATCH] build: add start script --- apps/redis-api/package.json | 3 ++- turbo.json | 45 +++++++++++++++++++------------------ 2 files changed, 25 insertions(+), 23 deletions(-) diff --git a/apps/redis-api/package.json b/apps/redis-api/package.json index 54e1d19..fcc5d6e 100644 --- a/apps/redis-api/package.json +++ b/apps/redis-api/package.json @@ -6,7 +6,8 @@ "types": "dist/index.d.ts", "scripts": { "build": "node scripts/build.mjs", - "dev": "node scripts/build.mjs --dev && node dist/index.mjs" + "dev": "node scripts/build.mjs --dev && node dist/index.mjs", + "start": "node dist/index.mjs" }, "devDependencies": { "esbuild": "^0.15.11", diff --git a/turbo.json b/turbo.json index e332fec..bfc94c4 100644 --- a/turbo.json +++ b/turbo.json @@ -1,24 +1,25 @@ { - "$schema": "https://turbo.build/schema.json", - "pipeline": { - "build": { - "dependsOn": ["^build"], - "outputs": ["dist"] - }, - "dev": { - "outputs": ["dist"] - }, - "dev:tunnel": { - "outputs": ["dist"] - }, - "preview": { - "outputs": ["dist"] - }, - "deploy": { - "dependsOn": ["build", "test", "lint"] - }, - "test": { - "dependsOn": ["^build"] - } - } + "$schema": "https://turbo.build/schema.json", + "pipeline": { + "build": { + "dependsOn": ["^build"], + "outputs": ["dist"] + }, + "dev": { + "outputs": ["dist"] + }, + "dev:tunnel": { + "outputs": ["dist"] + }, + "preview": { + "outputs": ["dist"] + }, + "deploy": { + "dependsOn": ["build", "test", "lint"] + }, + "start": {}, + "test": { + "dependsOn": ["^build"] + } + } }