浏览代码

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
Jonathan Jogenfors 1 年之前
父节点
当前提交
3edade6761
共有 2 个文件被更改,包括 13 次插入32 次删除
  1. 2 2
      server/package.json
  2. 11 30
      server/tsconfig.json

+ 2 - 2
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",

+ 11 - 30
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"
-  ]
-}
+  "exclude": ["dist", "node_modules", "upload"]
+}