diff --git a/openvidu-call/docker/entrypoint.sh b/openvidu-call/docker/entrypoint.sh index 10693e80..6020a9c3 100644 --- a/openvidu-call/docker/entrypoint.sh +++ b/openvidu-call/docker/entrypoint.sh @@ -12,4 +12,4 @@ CALL_OPENVIDU_CERTTYPE=${CALL_OPENVIDU_CERTTYPE} EOF cd /opt/openvidu-call -node openvidu-call-server.js +node app.js diff --git a/openvidu-call/openvidu-call-back/package.json b/openvidu-call/openvidu-call-back/package.json index 7e50f93d..50c0762f 100644 --- a/openvidu-call/openvidu-call-back/package.json +++ b/openvidu-call/openvidu-call-back/package.json @@ -22,10 +22,7 @@ "supertest": "6.2.2", "ts-loader": "9.2.6", "ts-node": "10.4.0", - "typescript": "4.4.4", - "webpack": "5.66.0", - "webpack-cli": "4.9.1", - "webpack-node-externals": "3.0.0" + "typescript": "4.4.4" }, "homepage": "https://github.com/OpenVidu/openvidu-call#readme", "jest": { @@ -47,7 +44,7 @@ "url": "git+https://github.com/OpenVidu/openvidu-call.git" }, "scripts": { - "build": "webpack", + "build": "tsc", "start": "cross-env CALL_OPENVIDU_CERTTYPE=selfsigned nodemon src/app.ts", "test": "jest" }, diff --git a/openvidu-call/openvidu-call-back/src/app.ts b/openvidu-call/openvidu-call-back/src/app.ts index 20b8e0b4..8a8da339 100644 --- a/openvidu-call/openvidu-call-back/src/app.ts +++ b/openvidu-call/openvidu-call-back/src/app.ts @@ -1,4 +1,3 @@ - import * as express from 'express'; import { SERVER_PORT, OPENVIDU_URL, OPENVIDU_SECRET, CALL_OPENVIDU_CERTTYPE } from './config'; import {app as callController} from './controllers/CallController'; @@ -15,7 +14,7 @@ app.use('/call', callController); // Accept selfsigned certificates if CALL_OPENVIDU_CERTTYPE=selfsigned if (CALL_OPENVIDU_CERTTYPE === 'selfsigned') { - process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0" + process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; } app.listen(SERVER_PORT, () => { diff --git a/openvidu-call/openvidu-call-back/tsconfig.json b/openvidu-call/openvidu-call-back/tsconfig.json index d1168c42..6652cb41 100644 --- a/openvidu-call/openvidu-call-back/tsconfig.json +++ b/openvidu-call/openvidu-call-back/tsconfig.json @@ -12,7 +12,7 @@ // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ "sourceMap": true, /* Generates corresponding '.map' file. */ // "outFile": "./", /* Concatenate and emit output to single file. */ - // "outDir": "./dist", /* Redirect output structure to the directory. */ + "outDir": "./dist", /* Redirect output structure to the directory. */ // "rootDir": "./src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ // "composite": true, /* Enable project compilation */ // "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */