relife2 1.0.0 → 1.0.1
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/README.md +4 -4
- package/dist/cli.js +6 -4
- package/dist/cli.js.map +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -79,7 +79,7 @@ relife2 find start # starts every stopped config it found
|
|
|
79
79
|
**npm (any OS, Node ≥20):**
|
|
80
80
|
```sh
|
|
81
81
|
npm i -g relife2
|
|
82
|
-
relife2 --version # relife2 1.0.
|
|
82
|
+
relife2 --version # relife2 1.0.1 (node)
|
|
83
83
|
rl2 --version # alias
|
|
84
84
|
```
|
|
85
85
|
|
|
@@ -95,9 +95,9 @@ chmod +x /usr/local/bin/relife2
|
|
|
95
95
|
|
|
96
96
|
**tar.gz / rpm / deb:**
|
|
97
97
|
```sh
|
|
98
|
-
npm run dist:tar # → dist/relife2-1.0.
|
|
99
|
-
npm run dist:rpm # → dist/relife2-1.0.
|
|
100
|
-
npm run dist:deb # → dist/relife2_1.0.
|
|
98
|
+
npm run dist:tar # → dist/relife2-1.0.1-linux-x64.tar.gz (binary + README + LICENSE)
|
|
99
|
+
npm run dist:rpm # → dist/relife2-1.0.1-1.x86_64.rpm (needs fpm)
|
|
100
|
+
npm run dist:deb # → dist/relife2_1.0.1_amd64.deb (uses dpkg-deb or fpm)
|
|
101
101
|
sudo dnf install ./dist/relife2-*.rpm # Oracle Linux / RHEL / Fedora
|
|
102
102
|
sudo apt install ./dist/relife2_*_amd64.deb # Debian / Ubuntu
|
|
103
103
|
```
|
package/dist/cli.js
CHANGED
|
@@ -523,6 +523,7 @@ function collectSubDirs(root) {
|
|
|
523
523
|
const stack = [root];
|
|
524
524
|
while (stack.length > 0) {
|
|
525
525
|
const dir = stack.pop();
|
|
526
|
+
if (!dir) continue;
|
|
526
527
|
let entries = [];
|
|
527
528
|
try {
|
|
528
529
|
entries = fs3.readdirSync(dir, { withFileTypes: true });
|
|
@@ -584,7 +585,7 @@ async function run3(args) {
|
|
|
584
585
|
return runManualWatch(script, cwd, interpreter, passthrough, watchRaw);
|
|
585
586
|
}
|
|
586
587
|
async function runBunHot(script, cwd, appArgs, watchRaw) {
|
|
587
|
-
const
|
|
588
|
+
const _extraWatch = watchRaw ? ["--watch"] : [];
|
|
588
589
|
const bunArgs = ["--hot", script, ...appArgs];
|
|
589
590
|
console.log(`dev (bun --hot): bun ${bunArgs.join(" ")} [cwd ${cwd}]`);
|
|
590
591
|
if (watchRaw)
|
|
@@ -2100,8 +2101,8 @@ Would write ${planned.length} app(s) to ${outPath ?? "relife2.config.cjs (dry-ru
|
|
|
2100
2101
|
lines.push(` cwd: '${p.dir.replace(/'/g, "\\'")}',`);
|
|
2101
2102
|
lines.push(` interpreter: 'none',`);
|
|
2102
2103
|
} else {
|
|
2103
|
-
const
|
|
2104
|
-
const
|
|
2104
|
+
const _scriptEsc = p.script.replace(/'/g, "\\'");
|
|
2105
|
+
const _dirEsc = p.dir.replace(/'/g, "\\'");
|
|
2105
2106
|
lines.push(` script: ${JSON.stringify(p.script)},`);
|
|
2106
2107
|
lines.push(` cwd: ${JSON.stringify(p.dir)},`);
|
|
2107
2108
|
if (interp) lines.push(` interpreter: ${JSON.stringify(interp)},`);
|
|
@@ -2184,7 +2185,7 @@ function printUsage2() {
|
|
|
2184
2185
|
}
|
|
2185
2186
|
|
|
2186
2187
|
// src/version.ts
|
|
2187
|
-
var VERSION = "1.0.
|
|
2188
|
+
var VERSION = "1.0.1";
|
|
2188
2189
|
|
|
2189
2190
|
// src/commands/help.ts
|
|
2190
2191
|
var HELP_TEXT = `relife2 ${VERSION} \u2014 process manager for Node.js & Bun apps (PM2 alternative, done right)
|
|
@@ -4747,6 +4748,7 @@ async function run25(argv) {
|
|
|
4747
4748
|
return 0;
|
|
4748
4749
|
}
|
|
4749
4750
|
const impl = COMMANDS[command];
|
|
4751
|
+
if (!impl) return 1;
|
|
4750
4752
|
return impl(args.slice(1));
|
|
4751
4753
|
}
|
|
4752
4754
|
if (hasFlag(args, "v", "version")) {
|