create-entity-server 0.5.6 → 0.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-entity-server",
3
- "version": "0.5.6",
3
+ "version": "0.6.0",
4
4
  "description": "Create a new entity-server project in one command — like create-react-app or create-vite.",
5
5
  "keywords": [
6
6
  "entity-server",
@@ -75,6 +75,31 @@ get_pid_cwd() {
75
75
  readlink -f "/proc/$pid/cwd" 2>/dev/null || true
76
76
  }
77
77
 
78
+ # 포트 점유 프로세스 상세 정보를 출력합니다.
79
+ print_port_process_details() {
80
+ local pid=""
81
+ local process_name=""
82
+ local cmdline=""
83
+
84
+ while read -r pid; do
85
+ pid=$(echo "$pid" | tr -d '[:space:]')
86
+ [ -z "$pid" ] && continue
87
+
88
+ process_name=$(get_pid_name "$pid")
89
+ cmdline=$(get_pid_cmdline "$pid")
90
+ [ -z "$process_name" ] && process_name="unknown"
91
+ [ -z "$cmdline" ] && cmdline="(command line unavailable)"
92
+
93
+ if [ "$LANGUAGE" = "en" ]; then
94
+ echo " PID: $pid | NAME: $process_name"
95
+ echo " CMD: $cmdline"
96
+ else
97
+ echo " PID: $pid | NAME: $process_name"
98
+ echo " CMD: $cmdline"
99
+ fi
100
+ done < <(find_server_pids)
101
+ }
102
+
78
103
  # PID가 실제 실행 중인지 Windows 폴백까지 포함해 확인합니다.
79
104
  is_pid_running() {
80
105
  local pid="$1"
@@ -360,6 +385,8 @@ show_start_port_in_use_message() {
360
385
  else
361
386
  echo "❌ 포트 $port 가 이미 사용 중입니다. 먼저 중지하세요: ./run.sh stop"
362
387
  fi
388
+
389
+ print_port_process_details
363
390
  }
364
391
 
365
392
  show_unmanaged_server_message() {
@@ -373,6 +400,8 @@ show_unmanaged_server_message() {
373
400
  echo "ℹ️ 포트 $port 를 사용하는 프로세스가 있지만, 현재 프로젝트의 pid 파일로 시작한 서버가 아닙니다."
374
401
  echo " 안전을 위해 run.sh stop 은 포트 일치만으로 프로세스를 종료하지 않습니다."
375
402
  fi
403
+
404
+ print_port_process_details
376
405
  }
377
406
 
378
407
  stop_pid_with_confirm() {