phantom-pr 0.2.8 → 0.2.9
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/bin/phantom-pr.cjs +19 -19
- package/package.json +1 -1
package/bin/phantom-pr.cjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// CommonJS wrapper for ESM CLI - ensures cross-platform compatibility
|
|
3
|
-
const { spawn } = require('child_process');
|
|
4
|
-
const path = require('path');
|
|
5
|
-
|
|
6
|
-
const cliPath = path.join(__dirname, '..', 'dist', 'cli.js');
|
|
7
|
-
const child = spawn(process.execPath, [cliPath, ...process.argv.slice(2)], {
|
|
8
|
-
stdio: 'inherit',
|
|
9
|
-
shell: false,
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
child.on('close', (code) => {
|
|
13
|
-
process.exit(code || 0);
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
child.on('error', (err) => {
|
|
17
|
-
console.error('Failed to start phantom-pr:', err.message);
|
|
18
|
-
process.exit(2);
|
|
19
|
-
});
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// CommonJS wrapper for ESM CLI - ensures cross-platform compatibility
|
|
3
|
+
const { spawn } = require('child_process');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
|
|
6
|
+
const cliPath = path.join(__dirname, '..', 'dist', 'cli.js');
|
|
7
|
+
const child = spawn(process.execPath, [cliPath, ...process.argv.slice(2)], {
|
|
8
|
+
stdio: 'inherit',
|
|
9
|
+
shell: false,
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
child.on('close', (code) => {
|
|
13
|
+
process.exit(code || 0);
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
child.on('error', (err) => {
|
|
17
|
+
console.error('Failed to start phantom-pr:', err.message);
|
|
18
|
+
process.exit(2);
|
|
19
|
+
});
|