@bobfrankston/mailx 1.0.209 → 1.0.211

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/bin/mailx.js CHANGED
@@ -32,21 +32,13 @@ const isDaemon = hasFlag("daemon"); // internal: re-spawned detached process
32
32
  // Skip for: --verbose (want console), --daemon (already detached),
33
33
  // and any command flags (setup, kill, test, etc.)
34
34
  if (!verbose && !isDaemon && !process.argv.slice(2).some(a => /^-/.test(a))) {
35
- const { execSync, spawn } = await import("node:child_process");
36
- if (process.platform === "win32") {
37
- // Use wscript to launch without any visible console window
38
- const args = [...process.argv.slice(1), "--daemon"].map(a => `"${a}"`).join(" ");
39
- const vbs = `CreateObject("Wscript.Shell").Run """${process.execPath}"" ${args}", 0, False`;
40
- const tmpVbs = path.join(os.tmpdir(), "mailx-launch.vbs");
41
- fs.writeFileSync(tmpVbs, vbs);
42
- execSync(`wscript "${tmpVbs}"`, { stdio: "ignore" });
43
- }
44
- else {
45
- const child = spawn(process.execPath, [...process.argv.slice(1), "--daemon"], {
46
- detached: true, stdio: "ignore",
47
- });
48
- child.unref();
49
- }
35
+ const { spawn } = await import("node:child_process");
36
+ const child = spawn(process.execPath, [...process.argv.slice(1), "--daemon"], {
37
+ detached: true,
38
+ stdio: "ignore",
39
+ windowsHide: true,
40
+ });
41
+ child.unref();
50
42
  process.exit(0);
51
43
  }
52
44
  const setupMode = hasFlag("setup");
@@ -503,8 +495,7 @@ async function runTest() {
503
495
  console.log("\nmailx — connection test\n");
504
496
  // Start server in-process to access settings
505
497
  console.log("Loading settings...");
506
- const { loadSettings, getSharedDir } = await import("../packages/mailx-settings/index.js");
507
- const { initLocalConfig } = await import("../packages/mailx-settings/index.js");
498
+ const { loadSettings, getSharedDir, initLocalConfig } = await import("@bobfrankston/mailx-settings");
508
499
  initLocalConfig();
509
500
  const settings = loadSettings();
510
501
  if (settings.accounts.length === 0) {
@@ -1 +1 @@
1
- {"height":1344,"width":2151,"x":476,"y":58}
1
+ {"height":1344,"width":2151,"x":380,"y":46}
@@ -3,6 +3,9 @@
3
3
  "version": "1.0.13",
4
4
  "private": true,
5
5
  "type": "module",
6
+ "scripts": {
7
+ "build": "tsc"
8
+ },
6
9
  "dependencies": {
7
10
  "quill": "^2.0.0"
8
11
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobfrankston/mailx",
3
- "version": "1.0.209",
3
+ "version": "1.0.211",
4
4
  "description": "Local-first email client with IMAP sync and standalone native app",
5
5
  "type": "module",
6
6
  "main": "bin/mailx.js",
@@ -12,7 +12,7 @@
12
12
  "client"
13
13
  ],
14
14
  "scripts": {
15
- "build": "npm run build --workspaces --if-present",
15
+ "build": "npm run build --workspaces --if-present && tsc -p bin",
16
16
  "watch": "tsc -w",
17
17
  "start": "node --watch packages/mailx-server/index.js",
18
18
  "start:prod": "node packages/mailx-server/index.js",
@@ -24,7 +24,7 @@
24
24
  "@bobfrankston/iflow-node": "^0.1.2",
25
25
  "@bobfrankston/miscinfo": "^1.0.8",
26
26
  "@bobfrankston/oauthsupport": "^1.0.22",
27
- "@bobfrankston/msger": "^0.1.270",
27
+ "@bobfrankston/msger": "^0.1.273",
28
28
  "@capacitor/android": "^8.3.0",
29
29
  "@capacitor/cli": "^8.3.0",
30
30
  "@capacitor/core": "^8.3.0",