create-prisma-php-app 3.5.3 → 3.6.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma-php-app",
3
- "version": "3.5.3",
3
+ "version": "3.6.0",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -1,28 +0,0 @@
1
- @echo off
2
- set PORT=8080
3
- set "PHP_PATH=php"
4
- set "SERVER_SCRIPT_PATH= src\Lib\Websocket\websocket-server.php"
5
-
6
- echo [INFO] Checking for processes using port %PORT%...
7
- netstat -aon | findstr :%PORT%
8
-
9
- for /f "tokens=5" %%a in ('netstat -aon ^| findstr :%PORT%') do (
10
- echo [INFO] Found PID: %%a
11
- taskkill /F /PID %%a
12
- if %ERRORLEVEL% == 0 (
13
- echo [SUCCESS] Killed process %%a.
14
- ) else (
15
- echo [ERROR] Failed to kill process %%a.
16
- )
17
- )
18
-
19
- :: Wait to ensure the port is freed
20
- timeout /t 2 >nul
21
-
22
- echo [INFO] Starting WebSocket server on port %PORT%...
23
- %PHP_PATH% %SERVER_SCRIPT_PATH%
24
- if %ERRORLEVEL% == 0 (
25
- echo [SUCCESS] WebSocket server started.
26
- ) else (
27
- echo [ERROR] Failed to start WebSocket server.
28
- )