@dreamlake/dreamlake-cli 0.9.1 → 0.9.2
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/dreamlake.js +9 -1
- package/package.json +9 -9
package/bin/dreamlake.js
CHANGED
|
@@ -29,7 +29,15 @@ try {
|
|
|
29
29
|
process.exit(1);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
let r = spawnSync(binPath, process.argv.slice(2), { stdio: "inherit" });
|
|
33
|
+
if (r.error && r.error.code === "EACCES") {
|
|
34
|
+
// Belt and braces: if a tarball ever ships the binary without the exec
|
|
35
|
+
// bit again, repair it once and retry rather than stranding the user.
|
|
36
|
+
try {
|
|
37
|
+
require("node:fs").chmodSync(binPath, 0o755);
|
|
38
|
+
r = spawnSync(binPath, process.argv.slice(2), { stdio: "inherit" });
|
|
39
|
+
} catch {}
|
|
40
|
+
}
|
|
33
41
|
if (r.error) {
|
|
34
42
|
process.stderr.write("dreamlake: " + r.error.message + "\n");
|
|
35
43
|
process.exit(1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dreamlake/dreamlake-cli",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/dreamlake-ai/dreamlake-cli.git"
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
"node": ">=18"
|
|
18
18
|
},
|
|
19
19
|
"optionalDependencies": {
|
|
20
|
-
"@dreamlake/dreamlake-cli-darwin-arm64": "0.9.
|
|
21
|
-
"@dreamlake/dreamlake-cli-darwin-x64": "0.9.
|
|
22
|
-
"@dreamlake/dreamlake-cli-linux-x64": "0.9.
|
|
23
|
-
"@dreamlake/dreamlake-cli-linux-arm64": "0.9.
|
|
24
|
-
"@dreamlake/dreamlake-cli-linux-x64-musl": "0.9.
|
|
25
|
-
"@dreamlake/dreamlake-cli-linux-arm64-musl": "0.9.
|
|
26
|
-
"@dreamlake/dreamlake-cli-win32-x64": "0.9.
|
|
27
|
-
"@dreamlake/dreamlake-cli-win32-arm64": "0.9.
|
|
20
|
+
"@dreamlake/dreamlake-cli-darwin-arm64": "0.9.2",
|
|
21
|
+
"@dreamlake/dreamlake-cli-darwin-x64": "0.9.2",
|
|
22
|
+
"@dreamlake/dreamlake-cli-linux-x64": "0.9.2",
|
|
23
|
+
"@dreamlake/dreamlake-cli-linux-arm64": "0.9.2",
|
|
24
|
+
"@dreamlake/dreamlake-cli-linux-x64-musl": "0.9.2",
|
|
25
|
+
"@dreamlake/dreamlake-cli-linux-arm64-musl": "0.9.2",
|
|
26
|
+
"@dreamlake/dreamlake-cli-win32-x64": "0.9.2",
|
|
27
|
+
"@dreamlake/dreamlake-cli-win32-arm64": "0.9.2"
|
|
28
28
|
}
|
|
29
29
|
}
|