@absolutejs/absolute 0.20.0-beta.138 → 0.20.0-beta.139

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.
@@ -13,11 +13,11 @@ import {
13
13
  createElysiaOpenApiTypeboxPlugin,
14
14
  createOptionalPeerPlugin,
15
15
  resolveServerBundleExternals
16
- } from "./index-s9374tcg.js";
16
+ } from "./index-fezxjrgd.js";
17
17
  import {
18
18
  normalizeAbsoluteMobileConfig2
19
19
  } from "./index-t7yf3vxs.js";
20
- import"./index-g407dg4f.js";
20
+ import"./index-nrtt3x67.js";
21
21
  import {
22
22
  ABSOLUTE_NATIVE_AUTH_CLIENTS_ENV2,
23
23
  installAbsoluteMobileAuthEnvironment2
@@ -39,7 +39,7 @@ import {
39
39
  } from "./index-hg54jyts.js";
40
40
  import {
41
41
  __require
42
- } from "./index-fde3c297.js";
42
+ } from "./index-pb1dcdw6.js";
43
43
  import {
44
44
  scanListeners
45
45
  } from "./index-x8x0f3ha.js";
@@ -1314,7 +1314,7 @@ var loadAbsoluteMobileDevModules = async () => {
1314
1314
  expoNativeWatcher
1315
1315
  ] = await Promise.all([
1316
1316
  import("./config-hy5dkexz.js"),
1317
- import("./expoProject-4x9q22xw.js"),
1317
+ import("./expoProject-kabqa80q.js"),
1318
1318
  import("./expoDevController-hen9sra5.js"),
1319
1319
  import("./nativeAuth-ysv0x5dy.js"),
1320
1320
  import("./androidEmulatorController-3zn6a4j3.js"),
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  writeAbsoluteExpoProject2,
4
4
  syncAbsoluteExpoWebAssets2
5
- } from "./index-g407dg4f.js";
5
+ } from "./index-nrtt3x67.js";
6
6
  import"./index-pch0v1z6.js";
7
7
  export {
8
8
  syncAbsoluteExpoWebAssets2 as syncAbsoluteExpoWebAssets,
@@ -7,7 +7,7 @@ import {
7
7
  resolveAbsoluteMobileUpdateRuntime,
8
8
  writeAbsoluteExpoProject2,
9
9
  syncAbsoluteExpoWebAssets2
10
- } from "./index-g407dg4f.js";
10
+ } from "./index-nrtt3x67.js";
11
11
  import {
12
12
  toPascal
13
13
  } from "./index-92g14j47.js";
@@ -20,7 +20,7 @@ import {
20
20
  createElysiaOpenApiTypeboxPlugin,
21
21
  createOptionalPeerPlugin,
22
22
  resolveServerBundleExternals
23
- } from "./index-s9374tcg.js";
23
+ } from "./index-fezxjrgd.js";
24
24
  import {
25
25
  normalizeAbsoluteMobileConfig2
26
26
  } from "./index-t7yf3vxs.js";
@@ -52,6 +52,15 @@ var CAPACITOR_SYNC_PACKAGE_SPECS = [
52
52
  `@absolutejs/sync-capacitor@${ABSOLUTE_CAPACITOR_SYNC_VERSION}`,
53
53
  "@capacitor-community/sqlite@8.1.1"
54
54
  ];
55
+ var EXPO_APP_EXACT_PACKAGES = new Set([
56
+ "@absolutejs/devices",
57
+ "@absolutejs/devices-expo"
58
+ ]);
59
+ var EXPO_APP_PACKAGE_SPECS = [
60
+ `@absolutejs/devices@${ABSOLUTE_DEVICES_VERSION}`,
61
+ `@absolutejs/devices-expo@${ABSOLUTE_EXPO_DEVICES_VERSION}`
62
+ ];
63
+ var EXPO_CODE_SIGNING_PACKAGE_SPEC = "@expo/code-signing-certificates@0.0.6";
55
64
  var resolvedPackageVersion = async (projectRoot, name) => {
56
65
  const directory = resolve(projectRoot);
57
66
  let source;
@@ -705,13 +714,20 @@ var absoluteDeviceNativeRequirements = (plan) => {
705
714
  ].sort()
706
715
  };
707
716
  };
717
+ var resolveAdapterManifest = (adapter, provider) => {
718
+ try {
719
+ return fileURLToPath(import.meta.resolve(`${adapter}/package.json`));
720
+ } catch {
721
+ throw new TypeError(`${adapter} is not installed. Run \`absolute mobile init\` to install the ${provider === "expo" ? "Expo" : "Capacitor"} device adapters.`);
722
+ }
723
+ };
708
724
  var loadAbsoluteDeviceCapabilityProviders = (projectRoot, provider = "capacitor") => {
709
725
  const adapter = ADAPTERS[provider];
710
726
  let path = join3(resolve3(projectRoot), "node_modules", adapter, "package.json");
711
727
  try {
712
728
  readFileSync2(path, "utf8");
713
729
  } catch {
714
- path = fileURLToPath(import.meta.resolve(`${adapter}/package.json`));
730
+ path = resolveAdapterManifest(adapter, provider);
715
731
  }
716
732
  const manifest = readJson(path);
717
733
  const { absolutejs } = manifest;
@@ -4289,4 +4305,4 @@ var syncAbsoluteExpoWebAssets2 = async (config) => {
4289
4305
  return { appBuild, assets: assets.length, bundleId, path: destination };
4290
4306
  };
4291
4307
 
4292
- export { ABSOLUTE_NATIVE_EXACT_PACKAGES, CAPACITOR_PACKAGE_SPECS, CAPACITOR_SYNC_PACKAGE_SPECS, assertNativePackageVersions, packageNameFromSpec, packagesNeedingExactInstall, discoverAbsoluteSyncSchema, absoluteDeviceNativeRequirements, assertAbsoluteDeviceCapabilityPackages, resolveAbsoluteDeviceCapabilityPlan, ABSOLUTE_MOBILE_UPDATE_FORMAT, absoluteMobileUpdateSigningPayload, canonicalizeAbsoluteMobileUpdate, parseAbsoluteMobileUpdateManifest, unsignedAbsoluteMobileUpdate, resolveAbsoluteMobileUpdateRuntime, ABSOLUTE_CAPACITOR_ASSETS_SPEC, generateAbsoluteCapacitorBranding, inspectAbsoluteMobileBranding, renderAbsoluteMobileBrandingPreview, writeAbsoluteExpoProject2, syncAbsoluteExpoWebAssets2 };
4308
+ export { ABSOLUTE_NATIVE_EXACT_PACKAGES, CAPACITOR_PACKAGE_SPECS, CAPACITOR_SYNC_PACKAGE_SPECS, EXPO_APP_EXACT_PACKAGES, EXPO_APP_PACKAGE_SPECS, EXPO_CODE_SIGNING_PACKAGE_SPEC, assertNativePackageVersions, packageNameFromSpec, packagesNeedingExactInstall, discoverAbsoluteSyncSchema, absoluteDeviceNativeRequirements, assertAbsoluteDeviceCapabilityPackages, resolveAbsoluteDeviceCapabilityPlan, ABSOLUTE_MOBILE_UPDATE_FORMAT, absoluteMobileUpdateSigningPayload, canonicalizeAbsoluteMobileUpdate, parseAbsoluteMobileUpdateManifest, unsignedAbsoluteMobileUpdate, resolveAbsoluteMobileUpdateRuntime, ABSOLUTE_CAPACITOR_ASSETS_SPEC, generateAbsoluteCapacitorBranding, inspectAbsoluteMobileBranding, renderAbsoluteMobileBrandingPreview, writeAbsoluteExpoProject2, syncAbsoluteExpoWebAssets2 };
@@ -0,0 +1,4 @@
1
+ // @bun
2
+ var __require = import.meta.require;
3
+
4
+ export { __require };
package/dist/cli/index.js CHANGED
@@ -54,7 +54,7 @@ if (command === "dev") {
54
54
  }
55
55
  const positionalArgs = stripNamedArgs("--config", "--android-device", "--ios-device").filter((arg) => arg !== "--no-mobile" && arg !== "--eager");
56
56
  const serverEntry = positionalArgs[0] ?? DEFAULT_SERVER_ENTRY;
57
- const { dev } = await import("./dev-5akk4tw6.js");
57
+ const { dev } = await import("./dev-4ps2yg1z.js");
58
58
  await dev(serverEntry, configPath, {
59
59
  androidDevice,
60
60
  eager: args.includes("--eager"),
@@ -70,7 +70,7 @@ if (command === "dev") {
70
70
  const configPath = parseNamedArg("--config");
71
71
  const positionalArgs = stripNamedArgs("--outdir", "--config").filter((arg) => arg !== "--prebuilt");
72
72
  const serverEntry = positionalArgs[0] ?? DEFAULT_SERVER_ENTRY;
73
- const { start } = await import("./start-7q57gc22.js");
73
+ const { start } = await import("./start-3m7bd02e.js");
74
74
  await start(serverEntry, outdir, configPath, {
75
75
  prebuilt: args.includes("--prebuilt")
76
76
  });
@@ -80,7 +80,7 @@ if (command === "dev") {
80
80
  const configPath = parseNamedArg("--config");
81
81
  const positionalArgs = stripNamedArgs("--outdir", "--config");
82
82
  const serverEntry = positionalArgs[0] ?? DEFAULT_SERVER_ENTRY;
83
- const { start } = await import("./start-7q57gc22.js");
83
+ const { start } = await import("./start-3m7bd02e.js");
84
84
  await start(serverEntry, outdir, configPath, { prepareOnly: true });
85
85
  } else if (command === "build") {
86
86
  sendTelemetryEvent("cli:command", { command });
@@ -188,7 +188,7 @@ if (command === "dev") {
188
188
  await runIslands(args);
189
189
  } else if (command === "info") {
190
190
  sendTelemetryEvent("cli:command", { command });
191
- const { info } = await import("./info-1hfrhf86.js");
191
+ const { info } = await import("./info-9ffx5h3h.js");
192
192
  info();
193
193
  } else if (command === "telemetry") {
194
194
  sendTelemetryEvent("cli:command", { command });
@@ -201,13 +201,13 @@ if (command === "dev") {
201
201
  const configPath = parseNamedArg("--config");
202
202
  const positionalArgs = stripNamedArgs("--outdir", "--outfile", "--config");
203
203
  const serverEntry = positionalArgs[0] ?? DEFAULT_SERVER_ENTRY;
204
- const { compile } = await import("./compile-3hrjsbjq.js");
204
+ const { compile } = await import("./compile-grhs9tj4.js");
205
205
  await compile(serverEntry, outdir, outfile, configPath);
206
206
  } else if (command === "mobile") {
207
207
  sendTelemetryEvent("cli:command", {
208
208
  command: `mobile:${workspaceCommand ?? "unknown"}`
209
209
  });
210
- const { runMobile } = await import("./mobile-rb3zcs4f.js");
210
+ const { runMobile } = await import("./mobile-p657bkqa.js");
211
211
  try {
212
212
  await runMobile(args);
213
213
  } catch (error) {
@@ -4,7 +4,7 @@ import {
4
4
  } from "./index-fgz435qn.js";
5
5
  import {
6
6
  __require
7
- } from "./index-fde3c297.js";
7
+ } from "./index-pb1dcdw6.js";
8
8
  import {
9
9
  isWSLEnvironment
10
10
  } from "./index-v4cg4dvm.js";