diff --git a/frontend/server/package.json b/frontend/server/package.json index dc2f8cfc..e2848c09 100644 --- a/frontend/server/package.json +++ b/frontend/server/package.json @@ -28,10 +28,10 @@ "tcp-ping-port": "^1.0.1", "uuid": "^9.0.1", "ws": "^8.18.0", - "yargs": "^17.7.2" + "yargs": "^17.7.2", + "cors": "^2.8.5" }, "devDependencies": { - "cors": "^2.8.5", "ts-node": "^10.9.2", "typescript": "^5.5.3" } diff --git a/frontend/server/scripts/build-release.bat b/frontend/server/scripts/build-release.bat index d2ea07e2..388a6375 100644 --- a/frontend/server/scripts/build-release.bat +++ b/frontend/server/scripts/build-release.bat @@ -1,7 +1,8 @@ -npm run tsc +call npm run tsc echo D|xcopy /Y /S /E .\public ..\..\build\frontend\public echo D|xcopy /Y /S /E .\views ..\..\build\frontend\cert +echo D|xcopy /Y /S /E .\build ..\..\build\frontend\build echo F|xcopy /Y .\app.js ..\..\build\frontend\app.js echo F|xcopy /Y .\client.js ..\..\build\frontend\client.js diff --git a/scripts/batch/build.bat b/scripts/batch/build.bat index 4da26545..5b182e43 100644 --- a/scripts/batch/build.bat +++ b/scripts/batch/build.bat @@ -9,7 +9,7 @@ cd frontend cd react call npm install -call npm build-release +call npm run build-release cd .. cd server