codexport 0.1.3 → 0.1.4
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/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import { homedir, platform } from "node:os";
|
|
|
11
11
|
import path from "node:path";
|
|
12
12
|
import { spawn } from "node:child_process";
|
|
13
13
|
import { parse as parseToml, stringify as stringifyToml } from "smol-toml";
|
|
14
|
-
const VERSION = "0.1.
|
|
14
|
+
const VERSION = "0.1.4";
|
|
15
15
|
const DEFAULT_PORT = 17342;
|
|
16
16
|
const DEFAULT_TIMEOUT_MS = 5_000;
|
|
17
17
|
const CODEXPORT_DIR = ".codexport";
|
|
@@ -460,7 +460,7 @@ function runCommand(command, args) {
|
|
|
460
460
|
});
|
|
461
461
|
}
|
|
462
462
|
async function installMasterService(ctx, port, dryRun) {
|
|
463
|
-
const command =
|
|
463
|
+
const command = `${process.execPath} ${realpathSync(fileURLToPath(import.meta.url))} master serve --port ${port}`;
|
|
464
464
|
if (platform() === "linux") {
|
|
465
465
|
const unitDir = path.join(ctx.homeDir, ".config", "systemd", "user");
|
|
466
466
|
const unitPath = path.join(unitDir, "codexport-master.service");
|