From bc423c1f28564cff3cd08ec2ac96552136cfbe75 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Simon=20D=C3=B6ring?= <simon.doering@stud.hs-bochum.de>
Date: Tue, 5 Jan 2021 21:46:52 +0100
Subject: [PATCH] Remove typescript compilation to single file

Nodejs can't run the single compiled file out of the box.
---
 README.md                  | 2 --
 camera-server/package.json | 3 +--
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/README.md b/README.md
index e7709b6..38153d3 100644
--- a/README.md
+++ b/README.md
@@ -20,8 +20,6 @@ To compile the code, install all dependencies, including the typescript compiler
 This can be done by running `npm install` in the `camera-server` folder.
 Then run `npm run build` in the same folder. This will compile the files into a newly created folder `dist`.
 
-If you want to compile the code into a single file, run `npm run build-single-file` instead.
-
 Once the code is compiled, the server can be started with `node server.js` in the `dist` folder.
 
 ## Config
diff --git a/camera-server/package.json b/camera-server/package.json
index 3a7a389..d3cc088 100644
--- a/camera-server/package.json
+++ b/camera-server/package.json
@@ -3,8 +3,7 @@
   "version": "1.0.0",
   "main": "server.js",
   "scripts": {
-    "build": "npx tsc",
-    "build-single-file": "npx tsc -m amd --outfile dist/server.js"
+    "build": "npx tsc"
   },
   "dependencies": {
     "socket.io": "^3.0.4"
-- 
GitLab