elit 3.5.7 → 3.5.8

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/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "elit-desktop"
3
- version = "3.5.7"
3
+ version = "3.5.8"
4
4
  edition = "2021"
5
5
  build = "desktop/build.rs"
6
6
 
package/README.md CHANGED
@@ -955,7 +955,7 @@ The package also exports `elit/test`, `elit/test-runtime`, and `elit/test-report
955
955
 
956
956
  Latest release notes live in [CHANGELOG.md](CHANGELOG.md).
957
957
 
958
- Highlights in `v3.5.7`:
958
+ Highlights in `v3.5.8`:
959
959
 
960
960
  - Added `elit pm` for detached background process management of shell commands, file targets, and WAPK apps.
961
961
  - Added `pm.apps[]` and `pm.dataDir` in `elit.config.*` for config-first process manager workflows.
package/dist/build.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { B as BuildOptions, a as BuildResult } from './server-CNgDUgSZ.js';
1
+ import { B as BuildOptions, a as BuildResult } from './server-FCdUqabc.js';
2
2
  import './http.js';
3
3
  import 'node:events';
4
4
  import './ws.js';
package/dist/cli.cjs CHANGED
@@ -76769,12 +76769,26 @@ function resolveDesktopEntryDisplayName(entryPath, fallbackName) {
76769
76769
  }
76770
76770
  return formatDesktopDisplayName(fallbackName);
76771
76771
  }
76772
+ function resolveDesktopBootstrapSupportModulePath(moduleName, packageRoot = PACKAGE_ROOT) {
76773
+ const candidates = [
76774
+ (0, import_node_path3.resolve)(packageRoot, "src", `${moduleName}.ts`),
76775
+ (0, import_node_path3.resolve)(packageRoot, "dist", `${moduleName}.mjs`)
76776
+ ];
76777
+ for (const candidate of candidates) {
76778
+ if ((0, import_node_fs3.existsSync)(candidate)) {
76779
+ return candidate;
76780
+ }
76781
+ }
76782
+ throw new Error(
76783
+ `Desktop support module "${moduleName}" was not found in ${packageRoot}. Expected one of: ${candidates.join(", ")}`
76784
+ );
76785
+ }
76772
76786
  function createDesktopBootstrapEntry(entryPath, appName) {
76773
76787
  const bootstrapId = (0, import_node_crypto3.randomUUID)();
76774
76788
  const bootstrapPath = (0, import_node_path3.join)((0, import_node_path3.dirname)(entryPath), `.elit-desktop-bootstrap-${appName}-${bootstrapId}.ts`);
76775
76789
  const preludePath = (0, import_node_path3.join)((0, import_node_path3.dirname)(entryPath), `.elit-desktop-prelude-${appName}-${bootstrapId}.ts`);
76776
- const desktopAutoRenderPath = (0, import_node_path3.resolve)(PACKAGE_ROOT, "src", "desktop-auto-render.ts");
76777
- const renderContextPath = (0, import_node_path3.resolve)(PACKAGE_ROOT, "src", "render-context.ts");
76790
+ const desktopAutoRenderPath = resolveDesktopBootstrapSupportModulePath("desktop-auto-render");
76791
+ const renderContextPath = resolveDesktopBootstrapSupportModulePath("render-context");
76778
76792
  const defaultTitle = `${resolveDesktopEntryDisplayName(entryPath, appName)} Desktop`;
76779
76793
  (0, import_node_fs3.writeFileSync)(
76780
76794
  preludePath,
package/dist/cli.mjs CHANGED
@@ -76754,12 +76754,26 @@ function resolveDesktopEntryDisplayName(entryPath, fallbackName) {
76754
76754
  }
76755
76755
  return formatDesktopDisplayName(fallbackName);
76756
76756
  }
76757
+ function resolveDesktopBootstrapSupportModulePath(moduleName, packageRoot = PACKAGE_ROOT) {
76758
+ const candidates = [
76759
+ resolve4(packageRoot, "src", `${moduleName}.ts`),
76760
+ resolve4(packageRoot, "dist", `${moduleName}.mjs`)
76761
+ ];
76762
+ for (const candidate of candidates) {
76763
+ if (existsSync3(candidate)) {
76764
+ return candidate;
76765
+ }
76766
+ }
76767
+ throw new Error(
76768
+ `Desktop support module "${moduleName}" was not found in ${packageRoot}. Expected one of: ${candidates.join(", ")}`
76769
+ );
76770
+ }
76757
76771
  function createDesktopBootstrapEntry(entryPath, appName) {
76758
76772
  const bootstrapId = randomUUID2();
76759
76773
  const bootstrapPath = join3(dirname4(entryPath), `.elit-desktop-bootstrap-${appName}-${bootstrapId}.ts`);
76760
76774
  const preludePath = join3(dirname4(entryPath), `.elit-desktop-prelude-${appName}-${bootstrapId}.ts`);
76761
- const desktopAutoRenderPath = resolve4(PACKAGE_ROOT, "src", "desktop-auto-render.ts");
76762
- const renderContextPath = resolve4(PACKAGE_ROOT, "src", "render-context.ts");
76775
+ const desktopAutoRenderPath = resolveDesktopBootstrapSupportModulePath("desktop-auto-render");
76776
+ const renderContextPath = resolveDesktopBootstrapSupportModulePath("render-context");
76763
76777
  const defaultTitle = `${resolveDesktopEntryDisplayName(entryPath, appName)} Desktop`;
76764
76778
  writeFileSync4(
76765
76779
  preludePath,
package/dist/config.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { D as DevServerOptions, B as BuildOptions, P as PreviewOptions, T as TestOptions } from './server-CNgDUgSZ.js';
1
+ import { D as DevServerOptions, B as BuildOptions, P as PreviewOptions, T as TestOptions } from './server-FCdUqabc.js';
2
2
  import './http.js';
3
3
  import 'node:events';
4
4
  import './ws.js';
@@ -1,4 +1,4 @@
1
- import { b as TestCoverageReporter } from './server-CNgDUgSZ.js';
1
+ import { b as TestCoverageReporter } from './server-FCdUqabc.js';
2
2
  import './http.js';
3
3
  import 'node:events';
4
4
  import './ws.js';