@antinomyhq/forge 0.51.3 → 0.51.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.
- package/bin/darwin/arm64/forge-aarch64-apple-darwin +0 -0
- package/bin/darwin/x64/forge-x86_64-apple-darwin +0 -0
- package/bin/linux/arm64/forge-aarch64-unknown-linux-gnu +0 -0
- package/bin/linux/arm64/forge-aarch64-unknown-linux-musl +0 -0
- package/bin/linux/x64/forge-x86_64-unknown-linux-gnu +0 -0
- package/bin/linux/x64/forge-x86_64-unknown-linux-musl +0 -0
- package/bin/win32/arm64/forge-aarch64-pc-windows-msvc.exe +0 -0
- package/bin/win32/x64/forge-x86_64-pc-windows-msvc.exe +0 -0
- package/forge.js +14 -4
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/forge.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
const { join } = require('path');
|
|
4
|
-
const {
|
|
4
|
+
const { spawn } = require('child_process');
|
|
5
5
|
const { existsSync } = require('fs');
|
|
6
6
|
|
|
7
7
|
// Get the correct binary extension based on platform
|
|
@@ -21,10 +21,20 @@ if (!existsSync(forgeBinaryPath)) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
// Execute the binary with the same arguments
|
|
24
|
-
const
|
|
24
|
+
const forgeProcess = spawn(forgeBinaryPath, process.argv.slice(2), {
|
|
25
25
|
stdio: 'inherit',
|
|
26
26
|
shell: process.platform === 'win32' // Use shell on Windows
|
|
27
27
|
});
|
|
28
28
|
|
|
29
|
-
//
|
|
30
|
-
process.
|
|
29
|
+
// Pass through SIGINT signals to the child process
|
|
30
|
+
process.on('SIGINT', () => {
|
|
31
|
+
// Instead of handling here, forward to the child
|
|
32
|
+
forgeProcess.kill('SIGINT');
|
|
33
|
+
// Don't exit - let the child process determine what happens
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
// Handle process exit
|
|
37
|
+
forgeProcess.on('exit', (code) => {
|
|
38
|
+
// Only exit with code when the child actually exits
|
|
39
|
+
process.exit(code || 0);
|
|
40
|
+
});
|