appostle-installer 0.0.1 → 0.0.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/dist/appostle.js +17 -1
- package/dist/appostle.js.map +2 -2
- package/dist/supervisor-entrypoint.js +485 -0
- package/dist/supervisor-entrypoint.js.map +7 -0
- package/dist/worker.js +55805 -0
- package/dist/worker.js.map +7 -0
- package/package.json +1 -1
package/dist/appostle.js
CHANGED
|
@@ -46680,6 +46680,7 @@ import { spawn as spawn7, spawnSync } from "node:child_process";
|
|
|
46680
46680
|
import { existsSync as existsSync12, readFileSync as readFileSync8 } from "node:fs";
|
|
46681
46681
|
import { createRequire as createRequire3 } from "node:module";
|
|
46682
46682
|
import path17 from "node:path";
|
|
46683
|
+
import { fileURLToPath } from "node:url";
|
|
46683
46684
|
var DETACHED_STARTUP_GRACE_MS = 1200;
|
|
46684
46685
|
var PID_POLL_INTERVAL_MS = 100;
|
|
46685
46686
|
var KILL_TIMEOUT_MS = 3e3;
|
|
@@ -46727,7 +46728,22 @@ function buildChildEnv(options) {
|
|
|
46727
46728
|
return childEnv;
|
|
46728
46729
|
}
|
|
46729
46730
|
function resolveDaemonRunnerEntry() {
|
|
46730
|
-
|
|
46731
|
+
try {
|
|
46732
|
+
const here = fileURLToPath(import.meta.url);
|
|
46733
|
+
const sibling = path17.join(path17.dirname(here), "supervisor-entrypoint.js");
|
|
46734
|
+
if (existsSync12(sibling)) {
|
|
46735
|
+
return sibling;
|
|
46736
|
+
}
|
|
46737
|
+
} catch {
|
|
46738
|
+
}
|
|
46739
|
+
let serverExportPath;
|
|
46740
|
+
try {
|
|
46741
|
+
serverExportPath = require4.resolve("@appostle/server");
|
|
46742
|
+
} catch {
|
|
46743
|
+
throw new Error(
|
|
46744
|
+
"Unable to resolve @appostle/server package root for daemon runner (and no sibling supervisor-entrypoint.js was bundled)"
|
|
46745
|
+
);
|
|
46746
|
+
}
|
|
46731
46747
|
let currentDir = path17.dirname(serverExportPath);
|
|
46732
46748
|
while (true) {
|
|
46733
46749
|
const packageJsonPath = path17.join(currentDir, "package.json");
|