ezpm2gui 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,6 +7,7 @@ exports.createServer = createServer;
7
7
  const express_1 = __importDefault(require("express"));
8
8
  const http_1 = __importDefault(require("http"));
9
9
  const socket_io_1 = require("socket.io");
10
+ const path_1 = __importDefault(require("path"));
10
11
  const pm2_1 = __importDefault(require("pm2"));
11
12
  const os_1 = __importDefault(require("os"));
12
13
  const processConfig_1 = __importDefault(require("./routes/processConfig"));
@@ -32,7 +33,7 @@ function createServer() {
32
33
  // Configure middleware
33
34
  app.use(express_1.default.json());
34
35
  // Serve static files from the React app build directory
35
- const staticPath = 'D:/Personal/ezpm2gui/src/client/build';
36
+ const staticPath = path_1.default.join(__dirname, '../../src/client/build');
36
37
  console.log('Serving static files from:', staticPath);
37
38
  const fs = require('fs');
38
39
  if (fs.existsSync(staticPath)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ezpm2gui",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "main": "dist/server/index.js",
5
5
  "bin": {
6
6
  "ezpm2gui": "bin/ezpm2gui.js",