@ninebone/mcp 1.0.7 → 1.0.8
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/ecosystem.config.js +1 -1
- package/package.json +1 -1
- package/src/pm2-wrapper.js +10 -0
package/ecosystem.config.js
CHANGED
package/package.json
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// src/pm2-wrapper.js
|
|
2
|
+
import { spawn } from 'child_process';
|
|
3
|
+
import path from 'path';
|
|
4
|
+
import { fileURLToPath } from 'url';
|
|
5
|
+
|
|
6
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
7
|
+
// __dirname을 사용하므로, 누가 어디에 설치해도 경로가 자동으로 잡힙니다.
|
|
8
|
+
const indexPath = path.join(__dirname, 'index.mjs');
|
|
9
|
+
|
|
10
|
+
spawn('node', ['--input-type=module', indexPath], { stdio: 'inherit' });
|