From 3edade6761cbad4377b10ba9ab6eb78c792b1bda Mon Sep 17 00:00:00 2001
From: Jonathan Jogenfors <jonathan@jogenfors.se>
Date: Fri, 8 Sep 2023 17:17:45 +0200
Subject: [PATCH] feat(server): tsconfig: don't clear console on nest startup
 (#4032)

* feat: don't clear nest output

* feat: moved config to tsconfig

* fix: cleanup package json
---
 server/package.json  |  4 ++--
 server/tsconfig.json | 41 +++++++++++------------------------------
 2 files changed, 13 insertions(+), 32 deletions(-)

diff --git a/server/package.json b/server/package.json
index 00b54358eb..7f062e15a2 100644
--- a/server/package.json
+++ b/server/package.json
@@ -15,8 +15,8 @@
     "format:fix": "prettier --write .",
     "start": "npm run start:dev",
     "nest": "nest",
-    "start:dev": "nest start --watch --preserveWatchOutput --",
-    "start:debug": "nest start --debug 0.0.0.0:9230 --watch --preserveWatchOutput --",
+    "start:dev": "nest start --watch --",
+    "start:debug": "nest start --debug 0.0.0.0:9230 --watch --",
     "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\" --max-warnings 0",
     "lint:fix": "npm run lint -- --fix",
     "check": "tsc --noEmit",
diff --git a/server/tsconfig.json b/server/tsconfig.json
index d342285abb..cd7b3f1b9c 100644
--- a/server/tsconfig.json
+++ b/server/tsconfig.json
@@ -15,37 +15,18 @@
     "incremental": true,
     "skipLibCheck": true,
     "esModuleInterop": true,
+    "preserveWatchOutput": true,
     "baseUrl": "./",
     "paths": {
-      "@test": [
-        "test"
-      ],
-      "@test/*": [
-        "test/*"
-      ],
-      "@app/immich": [
-        "src/immich"
-      ],
-      "@app/immich/*": [
-        "src/immich/*"
-      ],
-      "@app/infra": [
-        "src/infra"
-      ],
-      "@app/infra/*": [
-        "src/infra/*"
-      ],
-      "@app/domain": [
-        "src/domain"
-      ],
-      "@app/domain/*": [
-        "src/domain/*"
-      ]
+      "@test": ["test"],
+      "@test/*": ["test/*"],
+      "@app/immich": ["src/immich"],
+      "@app/immich/*": ["src/immich/*"],
+      "@app/infra": ["src/infra"],
+      "@app/infra/*": ["src/infra/*"],
+      "@app/domain": ["src/domain"],
+      "@app/domain/*": ["src/domain/*"]
     }
   },
-  "exclude": [
-    "dist",
-    "node_modules",
-    "upload"
-  ]
-}
\ No newline at end of file
+  "exclude": ["dist", "node_modules", "upload"]
+}