@howaboua/pi-codex-conversion 1.0.31-dev.3.4b87b70 → 1.0.31-dev.4.26e07fb
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/apply_patch +9 -1
- package/package.json +1 -1
- package/vendor/apply-patch/darwin-arm64/apply_patch +0 -0
- package/vendor/apply-patch/darwin-x64/apply_patch +0 -0
- package/vendor/apply-patch/linux-arm64/apply_patch +0 -0
- package/vendor/apply-patch/linux-x64/apply_patch +0 -0
- package/vendor/apply-patch/win32-arm64/apply_patch.exe +0 -0
- package/vendor/apply-patch/win32-x64/apply_patch.exe +0 -0
package/bin/apply_patch
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { spawnSync } from "node:child_process";
|
|
3
|
-
import { existsSync } from "node:fs";
|
|
3
|
+
import { chmodSync, existsSync } from "node:fs";
|
|
4
4
|
import { dirname, join } from "node:path";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
6
6
|
|
|
@@ -17,6 +17,14 @@ if (!existsSync(binary)) {
|
|
|
17
17
|
process.exit(127);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
if (platform !== "win32") {
|
|
21
|
+
try {
|
|
22
|
+
chmodSync(binary, 0o755);
|
|
23
|
+
} catch {
|
|
24
|
+
// Best effort. If chmod fails, spawn below will report the real error.
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
20
28
|
const result = spawnSync(binary, process.argv.slice(2), {
|
|
21
29
|
stdio: "inherit",
|
|
22
30
|
env: process.env,
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
Binary file
|
|
Binary file
|