@cnrai/pave 0.3.34 → 0.3.35
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/index.js +3 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1543,8 +1543,9 @@ async function _spawnFromStatus(savedConfig, verb) {
|
|
|
1543
1543
|
// Convert sleepMs back to duration string for CLI arg
|
|
1544
1544
|
const sleepStr = _msToSleepArg(savedConfig.sleepMs);
|
|
1545
1545
|
|
|
1546
|
-
// Build child args
|
|
1547
|
-
|
|
1546
|
+
// Build child args — use the actual running script so this works from
|
|
1547
|
+
// both source (index.js) and bundled builds (dist/pave-full.js).
|
|
1548
|
+
const pavePath = process.argv[1] || path.join(__dirname, 'index.js');
|
|
1548
1549
|
const childArgs = [
|
|
1549
1550
|
pavePath, 'agent',
|
|
1550
1551
|
'--name', savedConfig.name,
|