clawdepl 0.0.2 → 0.0.3
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/install.js +2 -2
- package/package.json +3 -4
package/bin/install.js
CHANGED
|
@@ -163,14 +163,14 @@ async function downloadBinary() {
|
|
|
163
163
|
const binaryPath = path.join(binDir, binaryName);
|
|
164
164
|
|
|
165
165
|
// Skip if binary already exists
|
|
166
|
-
if (fs.existsSync(binaryPath)) {
|
|
166
|
+
if (fs.existsSync(binaryPath) && fs.statSync(binaryPath).isFile()) {
|
|
167
167
|
console.log("clawdepl binary already installed.");
|
|
168
168
|
return;
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
// Check for local development binary (in project root)
|
|
172
172
|
const devBinary = path.join(__dirname, "..", "..", binaryName);
|
|
173
|
-
if (fs.existsSync(devBinary)) {
|
|
173
|
+
if (fs.existsSync(devBinary) && fs.statSync(devBinary).isFile()) {
|
|
174
174
|
console.log("Using local development binary.");
|
|
175
175
|
fs.copyFileSync(devBinary, binaryPath);
|
|
176
176
|
fs.chmodSync(binaryPath, 0o755);
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clawdepl",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Create and manage OpenClaw AI Agent orchestrator instances",
|
|
5
5
|
"bin": {
|
|
6
|
-
"clawdepl": "
|
|
6
|
+
"clawdepl": "bin/clawdepl.js"
|
|
7
7
|
},
|
|
8
8
|
"scripts": {
|
|
9
9
|
"postinstall": "node ./bin/install.js",
|
|
@@ -44,6 +44,5 @@
|
|
|
44
44
|
"bin/",
|
|
45
45
|
"README.md",
|
|
46
46
|
"LICENSE"
|
|
47
|
-
]
|
|
48
|
-
"preferGlobal": true
|
|
47
|
+
]
|
|
49
48
|
}
|