@cremini/skillpack 1.0.9-im.3 → 1.0.9-im.4

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.
@@ -11,6 +11,7 @@
11
11
  "@slack/bolt": "^4.6.0",
12
12
  "express": "^5.1.0",
13
13
  "node-telegram-bot-api": "^0.66.0",
14
+ "pm2": "^6.0.14",
14
15
  "ws": "^8.19.0"
15
16
  },
16
17
  "devDependencies": {
package/runtime/start.bat CHANGED
@@ -5,11 +5,14 @@ echo.
5
5
  echo Starting Skills Pack...
6
6
  echo.
7
7
 
8
- if not exist "server\node_modules" (
8
+ if not exist "server\node_modules\.bin\pm2.cmd" (
9
9
  echo Installing dependencies...
10
10
  cd server && npm ci --omit=dev && cd ..
11
11
  echo.
12
12
  )
13
13
 
14
- rem Start the server (port detection and browser launch are handled by server\dist\index.js)
15
- cd server && node dist/index.js
14
+ set "PM2_BIN=server\node_modules\.bin\pm2.cmd"
15
+
16
+ echo Launching under PM2...
17
+ echo.
18
+ "%PM2_BIN%" startOrRestart ecosystem.config.cjs --update-env
package/runtime/start.sh CHANGED
@@ -11,12 +11,15 @@ echo ""
11
11
  echo " Starting ${PACK_NAME}..."
12
12
  echo ""
13
13
 
14
- # Install dependencies
15
- if [ ! -d "server/node_modules" ]; then
14
+ # Install dependencies (including local PM2)
15
+ if [ ! -x "server/node_modules/.bin/pm2" ]; then
16
16
  echo " Installing dependencies..."
17
17
  cd server && npm install --omit=dev && cd ..
18
18
  echo ""
19
19
  fi
20
20
 
21
- # Start the server
22
- cd server && node dist/index.js
21
+ PM2_BIN="./server/node_modules/.bin/pm2"
22
+
23
+ echo " Launching under PM2..."
24
+ echo ""
25
+ "$PM2_BIN" startOrRestart ecosystem.config.cjs --update-env