repowise 0.1.47 → 0.1.49
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/dist/bin/repowise.js +11 -10
- package/package.json +1 -1
package/dist/bin/repowise.js
CHANGED
|
@@ -2589,11 +2589,13 @@ async function handleCatchUp(offlineState, pollClient, repoIds, state, repoLocal
|
|
|
2589
2589
|
notifyBackOnline(updateCount);
|
|
2590
2590
|
}
|
|
2591
2591
|
}
|
|
2592
|
-
async function startListener() {
|
|
2592
|
+
async function startListener(options) {
|
|
2593
2593
|
running = true;
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2594
|
+
if (!options?.skipPidCheck) {
|
|
2595
|
+
const alreadyRunning = await handleStalePid();
|
|
2596
|
+
if (alreadyRunning)
|
|
2597
|
+
return;
|
|
2598
|
+
}
|
|
2597
2599
|
await writePidFile();
|
|
2598
2600
|
const config2 = await getListenerConfig();
|
|
2599
2601
|
if (config2.repos.length === 0) {
|
|
@@ -3025,12 +3027,11 @@ program.command("config").description("Manage configuration").action(async () =>
|
|
|
3025
3027
|
await config2();
|
|
3026
3028
|
});
|
|
3027
3029
|
if (process.argv[2] === "__listener") {
|
|
3028
|
-
Promise.resolve().then(() => (init_main(), main_exports))
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
);
|
|
3030
|
+
const { startListener: startListener2 } = await Promise.resolve().then(() => (init_main(), main_exports));
|
|
3031
|
+
startListener2({ skipPidCheck: true }).catch((err) => {
|
|
3032
|
+
console.error("Listener fatal error:", err);
|
|
3033
|
+
process.exitCode = 1;
|
|
3034
|
+
});
|
|
3034
3035
|
} else {
|
|
3035
3036
|
program.parse();
|
|
3036
3037
|
}
|