@hot-updater/expo 0.21.7 → 0.21.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/dist/index.cjs CHANGED
@@ -26,8 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  //#endregion
27
27
  let __hot_updater_bare = require("@hot-updater/bare");
28
28
  __hot_updater_bare = __toESM(__hot_updater_bare);
29
- let __hot_updater_plugin_core = require("@hot-updater/plugin-core");
30
- __hot_updater_plugin_core = __toESM(__hot_updater_plugin_core);
29
+ let __hot_updater_cli_tools = require("@hot-updater/cli-tools");
30
+ __hot_updater_cli_tools = __toESM(__hot_updater_cli_tools);
31
31
  let node_url = require("node:url");
32
32
  node_url = __toESM(node_url);
33
33
  let node_child_process = require("node:child_process");
@@ -62,8 +62,6 @@ let node_stream = require("node:stream");
62
62
  node_stream = __toESM(node_stream);
63
63
  let node_buffer = require("node:buffer");
64
64
  node_buffer = __toESM(node_buffer);
65
- let __clack_prompts = require("@clack/prompts");
66
- __clack_prompts = __toESM(__clack_prompts);
67
65
 
68
66
  //#region ../../node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.js
69
67
  function isPlainObject(value) {
@@ -862,8 +860,8 @@ var require_windows = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ise
862
860
  pathext = pathext.split(";");
863
861
  if (pathext.indexOf("") !== -1) return true;
864
862
  for (var i$1 = 0; i$1 < pathext.length; i$1++) {
865
- var p = pathext[i$1].toLowerCase();
866
- if (p && path$10.substr(-p.length).toLowerCase() === p) return true;
863
+ var p$1 = pathext[i$1].toLowerCase();
864
+ if (p$1 && path$10.substr(-p$1.length).toLowerCase() === p$1) return true;
867
865
  }
868
866
  return false;
869
867
  }
@@ -992,13 +990,13 @@ var require_which = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/which
992
990
  const pCmd = path$9.join(pathPart, cmd);
993
991
  resolve(subStep(!pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd, i$1, 0));
994
992
  });
995
- const subStep = (p, i$1, ii) => new Promise((resolve, reject) => {
993
+ const subStep = (p$1, i$1, ii) => new Promise((resolve, reject) => {
996
994
  if (ii === pathExt.length) return resolve(step(i$1 + 1));
997
995
  const ext = pathExt[ii];
998
- isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
999
- if (!er && is) if (opt.all) found.push(p + ext);
1000
- else return resolve(p + ext);
1001
- return resolve(subStep(p, i$1, ii + 1));
996
+ isexe(p$1 + ext, { pathExt: pathExtExe }, (er, is) => {
997
+ if (!er && is) if (opt.all) found.push(p$1 + ext);
998
+ else return resolve(p$1 + ext);
999
+ return resolve(subStep(p$1, i$1, ii + 1));
1002
1000
  });
1003
1001
  });
1004
1002
  return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
@@ -1011,9 +1009,9 @@ var require_which = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/which
1011
1009
  const ppRaw = pathEnv[i$1];
1012
1010
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
1013
1011
  const pCmd = path$9.join(pathPart, cmd);
1014
- const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
1012
+ const p$1 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
1015
1013
  for (let j = 0; j < pathExt.length; j++) {
1016
- const cur = p + pathExt[j];
1014
+ const cur = p$1 + pathExt[j];
1017
1015
  try {
1018
1016
  if (isexe.sync(cur, { pathExt: pathExtExe })) if (opt.all) found.push(cur);
1019
1017
  else return cur;
@@ -5056,8 +5054,8 @@ var SignalExit = class extends SignalExitBase {
5056
5054
  const listeners = this.#process.listeners(sig);
5057
5055
  let { count: count$1 } = this.#emitter;
5058
5056
  /* c8 ignore start */
5059
- const p = process$9;
5060
- if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") count$1 += p.__signal_exit_emitter__.count;
5057
+ const p$1 = process$9;
5058
+ if (typeof p$1.__signal_exit_emitter__ === "object" && typeof p$1.__signal_exit_emitter__.count === "number") count$1 += p$1.__signal_exit_emitter__.count;
5061
5059
  /* c8 ignore stop */
5062
5060
  if (listeners.length === count$1) {
5063
5061
  this.unload();
@@ -6416,7 +6414,7 @@ function resolveMain(cwd) {
6416
6414
  * Run expo `prebuild` command
6417
6415
  */
6418
6416
  const runExpoPrebuild = async ({ platform: platform$1 }) => {
6419
- const spinner = __clack_prompts.spinner();
6417
+ const spinner = __hot_updater_cli_tools.p.spinner();
6420
6418
  try {
6421
6419
  spinner.start("Run expo prebuild");
6422
6420
  const args = [
@@ -6430,8 +6428,8 @@ const runExpoPrebuild = async ({ platform: platform$1 }) => {
6430
6428
  await execa("npx", args);
6431
6429
  } catch (e) {
6432
6430
  spinner.stop("Expo prebuild failed");
6433
- if (e instanceof ExecaError) __clack_prompts.log.error(e.stderr || e.stdout || e.message);
6434
- else if (e instanceof Error) __clack_prompts.log.error(e.message);
6431
+ if (e instanceof ExecaError) __hot_updater_cli_tools.p.log.error(e.stderr || e.stdout || e.message);
6432
+ else if (e instanceof Error) __hot_updater_cli_tools.p.log.error(e.message);
6435
6433
  process.exit(1);
6436
6434
  }
6437
6435
  };
@@ -6468,7 +6466,7 @@ const runBundle = async ({ cwd, platform: platform$1, buildPath, sourcemap }) =>
6468
6466
  ...sourcemap ? ["--sourcemap-output", `${bundleOutput}.map`] : [],
6469
6467
  "--reset-cache"
6470
6468
  ];
6471
- __hot_updater_plugin_core.log.normal("\n");
6469
+ __hot_updater_cli_tools.log.normal("\n");
6472
6470
  let stdout = null;
6473
6471
  try {
6474
6472
  stdout = (await execa("npx", args, {
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { createRequire } from "node:module";
2
2
  import { compileHermes } from "@hot-updater/bare";
3
- import { log } from "@hot-updater/plugin-core";
3
+ import { log, p } from "@hot-updater/cli-tools";
4
4
  import { fileURLToPath } from "node:url";
5
5
  import { ChildProcess, execFile, spawn, spawnSync } from "node:child_process";
6
6
  import { StringDecoder } from "node:string_decoder";
@@ -20,7 +20,6 @@ import { appendFileSync, createReadStream, createWriteStream, readFileSync, stat
20
20
  import { finished } from "node:stream/promises";
21
21
  import { Duplex, PassThrough, Readable, Transform, Writable, getDefaultHighWaterMark } from "node:stream";
22
22
  import { Buffer as Buffer$1 } from "node:buffer";
23
- import * as p from "@clack/prompts";
24
23
 
25
24
  //#region rolldown:runtime
26
25
  var __create = Object.create;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hot-updater/expo",
3
3
  "type": "module",
4
- "version": "0.21.7",
4
+ "version": "0.21.8",
5
5
  "description": "React Native OTA solution for self-hosted",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.js",
@@ -21,9 +21,9 @@
21
21
  "package.json"
22
22
  ],
23
23
  "dependencies": {
24
- "@clack/prompts": "0.10.0",
25
- "@hot-updater/bare": "0.21.7",
26
- "@hot-updater/plugin-core": "0.21.7"
24
+ "@hot-updater/bare": "0.21.8",
25
+ "@hot-updater/cli-tools": "0.21.8",
26
+ "@hot-updater/plugin-core": "0.21.8"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/node": "^20",