@hot-updater/cli-tools 0.29.1 → 0.29.2

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
@@ -59,7 +59,6 @@ node_path = __toESM(node_path);
59
59
  let node_util = require("node:util");
60
60
  let node_os = require("node:os");
61
61
  node_os = __toESM(node_os);
62
- let _hot_updater_core = require("@hot-updater/core");
63
62
  let node_events = require("node:events");
64
63
  let node_stream = require("node:stream");
65
64
  node_stream = __toESM(node_stream);
@@ -1659,7 +1658,7 @@ var require_path = /* @__PURE__ */ __commonJSMin(((exports) => {
1659
1658
  Object.defineProperty(exports, "__esModule", { value: true });
1660
1659
  exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
1661
1660
  const os$2 = require("os");
1662
- const path$36 = require("path");
1661
+ const path$37 = require("path");
1663
1662
  const IS_WINDOWS_PLATFORM = os$2.platform() === "win32";
1664
1663
  const LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
1665
1664
  /**
@@ -1688,7 +1687,7 @@ var require_path = /* @__PURE__ */ __commonJSMin(((exports) => {
1688
1687
  }
1689
1688
  exports.unixify = unixify;
1690
1689
  function makeAbsolute(cwd, filepath) {
1691
- return path$36.resolve(cwd, filepath);
1690
+ return path$37.resolve(cwd, filepath);
1692
1691
  }
1693
1692
  exports.makeAbsolute = makeAbsolute;
1694
1693
  function removeLeadingDotSegment(entry) {
@@ -2940,7 +2939,7 @@ var require_braces = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2940
2939
  //#endregion
2941
2940
  //#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js
2942
2941
  var require_constants$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2943
- const path$35 = require("path");
2942
+ const path$36 = require("path");
2944
2943
  const WIN_SLASH = "\\\\/";
2945
2944
  const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
2946
2945
  /**
@@ -3061,7 +3060,7 @@ var require_constants$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3061
3060
  CHAR_UNDERSCORE: 95,
3062
3061
  CHAR_VERTICAL_LINE: 124,
3063
3062
  CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
3064
- SEP: path$35.sep,
3063
+ SEP: path$36.sep,
3065
3064
  extglobChars(chars) {
3066
3065
  return {
3067
3066
  "!": {
@@ -3099,7 +3098,7 @@ var require_constants$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3099
3098
  //#endregion
3100
3099
  //#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js
3101
3100
  var require_utils$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
3102
- const path$34 = require("path");
3101
+ const path$35 = require("path");
3103
3102
  const win32 = process.platform === "win32";
3104
3103
  const { REGEX_BACKSLASH, REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL } = require_constants$4();
3105
3104
  exports.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
@@ -3119,7 +3118,7 @@ var require_utils$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
3119
3118
  };
3120
3119
  exports.isWindows = (options) => {
3121
3120
  if (options && typeof options.windows === "boolean") return options.windows;
3122
- return win32 === true || path$34.sep === "\\";
3121
+ return win32 === true || path$35.sep === "\\";
3123
3122
  };
3124
3123
  exports.escapeLast = (input, char, lastIdx) => {
3125
3124
  const idx = input.lastIndexOf(char, lastIdx);
@@ -4292,7 +4291,7 @@ var require_parse$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4292
4291
  //#endregion
4293
4292
  //#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js
4294
4293
  var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4295
- const path$33 = require("path");
4294
+ const path$34 = require("path");
4296
4295
  const scan = require_scan$1();
4297
4296
  const parse = require_parse$4();
4298
4297
  const utils = require_utils$4();
@@ -4431,7 +4430,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4431
4430
  * @api public
4432
4431
  */
4433
4432
  picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
4434
- return (glob instanceof RegExp ? glob : picomatch.makeRe(glob, options)).test(path$33.basename(input));
4433
+ return (glob instanceof RegExp ? glob : picomatch.makeRe(glob, options)).test(path$34.basename(input));
4435
4434
  };
4436
4435
  /**
4437
4436
  * Returns true if **any** of the given glob `patterns` match the specified `string`.
@@ -4986,7 +4985,7 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4986
4985
  var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
4987
4986
  Object.defineProperty(exports, "__esModule", { value: true });
4988
4987
  exports.isAbsolute = exports.partitionAbsoluteAndRelative = exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
4989
- const path$32 = require("path");
4988
+ const path$33 = require("path");
4990
4989
  const globParent = require_glob_parent();
4991
4990
  const micromatch = require_micromatch();
4992
4991
  const GLOBSTAR = "**";
@@ -5094,7 +5093,7 @@ var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
5094
5093
  }
5095
5094
  exports.endsWithSlashGlobStar = endsWithSlashGlobStar;
5096
5095
  function isAffectDepthOfReadingPattern(pattern) {
5097
- const basename = path$32.basename(pattern);
5096
+ const basename = path$33.basename(pattern);
5098
5097
  return endsWithSlashGlobStar(pattern) || isStaticPattern(basename);
5099
5098
  }
5100
5099
  exports.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern;
@@ -5168,7 +5167,7 @@ var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
5168
5167
  }
5169
5168
  exports.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
5170
5169
  function isAbsolute(pattern) {
5171
- return path$32.isAbsolute(pattern);
5170
+ return path$33.isAbsolute(pattern);
5172
5171
  }
5173
5172
  exports.isAbsolute = isAbsolute;
5174
5173
  }));
@@ -5796,7 +5795,7 @@ var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
5796
5795
  //#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.js
5797
5796
  var require_settings$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
5798
5797
  Object.defineProperty(exports, "__esModule", { value: true });
5799
- const path$31 = require("path");
5798
+ const path$32 = require("path");
5800
5799
  const fsStat = require_out$3();
5801
5800
  const fs = require_fs();
5802
5801
  var Settings = class {
@@ -5804,7 +5803,7 @@ var require_settings$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
5804
5803
  this._options = _options;
5805
5804
  this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
5806
5805
  this.fs = fs.createFileSystemAdapter(this._options.fs);
5807
- this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$31.sep);
5806
+ this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$32.sep);
5808
5807
  this.stats = this._getValue(this._options.stats, false);
5809
5808
  this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
5810
5809
  this.fsStatSettings = new fsStat.Settings({
@@ -6374,7 +6373,7 @@ var require_sync$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
6374
6373
  //#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.js
6375
6374
  var require_settings$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
6376
6375
  Object.defineProperty(exports, "__esModule", { value: true });
6377
- const path$30 = require("path");
6376
+ const path$31 = require("path");
6378
6377
  const fsScandir = require_out$2();
6379
6378
  var Settings = class {
6380
6379
  constructor(_options = {}) {
@@ -6384,7 +6383,7 @@ var require_settings$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
6384
6383
  this.deepFilter = this._getValue(this._options.deepFilter, null);
6385
6384
  this.entryFilter = this._getValue(this._options.entryFilter, null);
6386
6385
  this.errorFilter = this._getValue(this._options.errorFilter, null);
6387
- this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$30.sep);
6386
+ this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$31.sep);
6388
6387
  this.fsScandirSettings = new fsScandir.Settings({
6389
6388
  followSymbolicLinks: this._options.followSymbolicLinks,
6390
6389
  fs: this._options.fs,
@@ -6436,7 +6435,7 @@ var require_out$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
6436
6435
  //#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/reader.js
6437
6436
  var require_reader = /* @__PURE__ */ __commonJSMin(((exports) => {
6438
6437
  Object.defineProperty(exports, "__esModule", { value: true });
6439
- const path$29 = require("path");
6438
+ const path$30 = require("path");
6440
6439
  const fsStat = require_out$3();
6441
6440
  const utils = require_utils$3();
6442
6441
  var Reader = class {
@@ -6449,7 +6448,7 @@ var require_reader = /* @__PURE__ */ __commonJSMin(((exports) => {
6449
6448
  });
6450
6449
  }
6451
6450
  _getFullEntryPath(filepath) {
6452
- return path$29.resolve(this._settings.cwd, filepath);
6451
+ return path$30.resolve(this._settings.cwd, filepath);
6453
6452
  }
6454
6453
  _makeEntry(stats, pattern) {
6455
6454
  const entry = {
@@ -6784,7 +6783,7 @@ var require_entry = /* @__PURE__ */ __commonJSMin(((exports) => {
6784
6783
  //#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/provider.js
6785
6784
  var require_provider = /* @__PURE__ */ __commonJSMin(((exports) => {
6786
6785
  Object.defineProperty(exports, "__esModule", { value: true });
6787
- const path$28 = require("path");
6786
+ const path$29 = require("path");
6788
6787
  const deep_1 = require_deep();
6789
6788
  const entry_1 = require_entry$1();
6790
6789
  const error_1 = require_error();
@@ -6798,7 +6797,7 @@ var require_provider = /* @__PURE__ */ __commonJSMin(((exports) => {
6798
6797
  this.entryTransformer = new entry_2.default(this._settings);
6799
6798
  }
6800
6799
  _getRootDirectory(task) {
6801
- return path$28.resolve(this._settings.cwd, task.base);
6800
+ return path$29.resolve(this._settings.cwd, task.base);
6802
6801
  }
6803
6802
  _getReaderOptions(task) {
6804
6803
  const basePath = task.base === "." ? "" : task.base;
@@ -11913,9 +11912,9 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11913
11912
  };
11914
11913
  })();
11915
11914
  let getEolFromFile = (() => {
11916
- var _ref30 = (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* (path$44) {
11917
- if (!(yield exists(path$44))) return;
11918
- const buffer$2 = yield readFileBuffer(path$44);
11915
+ var _ref30 = (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* (path$45) {
11916
+ if (!(yield exists(path$45))) return;
11917
+ const buffer$2 = yield readFileBuffer(path$45);
11919
11918
  for (let i = 0; i < buffer$2.length; ++i) {
11920
11919
  if (buffer$2[i] === cr) return "\r\n";
11921
11920
  if (buffer$2[i] === lf) return "\n";
@@ -11926,10 +11925,10 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11926
11925
  };
11927
11926
  })();
11928
11927
  exports$9.writeFilePreservingEol = (() => {
11929
- var _ref31 = (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* (path$45, data) {
11930
- const eol = (yield getEolFromFile(path$45)) || (_os || _load_os()).default.EOL;
11928
+ var _ref31 = (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* (path$46, data) {
11929
+ const eol = (yield getEolFromFile(path$46)) || (_os || _load_os()).default.EOL;
11931
11930
  if (eol !== "\n") data = data.replace(/\n/g, eol);
11932
- yield writeFile(path$45, data);
11931
+ yield writeFile(path$46, data);
11933
11932
  });
11934
11933
  return function writeFilePreservingEol(_x30, _x31) {
11935
11934
  return _ref31.apply(this, arguments);
@@ -11978,10 +11977,10 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11978
11977
  if (_i15.done) break;
11979
11978
  _ref35 = _i15.value;
11980
11979
  }
11981
- const path$46 = _ref35;
11980
+ const path$47 = _ref35;
11982
11981
  try {
11983
- const fd = yield open(path$46, "r");
11984
- return (_fs || _load_fs()).default.createReadStream(path$46, { fd });
11982
+ const fd = yield open(path$47, "r");
11983
+ return (_fs || _load_fs()).default.createReadStream(path$47, { fd });
11985
11984
  } catch (err) {}
11986
11985
  }
11987
11986
  return null;
@@ -12137,7 +12136,7 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12137
12136
  Object.defineProperty(exports$10, "__esModule", { value: true });
12138
12137
  exports$10.getPathKey = getPathKey;
12139
12138
  const os = __webpack_require__(36);
12140
- const path$47 = __webpack_require__(0);
12139
+ const path$48 = __webpack_require__(0);
12141
12140
  const userHome = __webpack_require__(45).default;
12142
12141
  var _require = __webpack_require__(171);
12143
12142
  const getCacheDir = _require.getCacheDir, getConfigDir = _require.getConfigDir, getDataDir = _require.getDataDir;
@@ -12167,25 +12166,25 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12167
12166
  ];
12168
12167
  function getPreferredCacheDirectories() {
12169
12168
  const preferredCacheDirectories = [getCacheDir()];
12170
- if (process.getuid) preferredCacheDirectories.push(path$47.join(os.tmpdir(), `.yarn-cache-${process.getuid()}`));
12171
- preferredCacheDirectories.push(path$47.join(os.tmpdir(), `.yarn-cache`));
12169
+ if (process.getuid) preferredCacheDirectories.push(path$48.join(os.tmpdir(), `.yarn-cache-${process.getuid()}`));
12170
+ preferredCacheDirectories.push(path$48.join(os.tmpdir(), `.yarn-cache`));
12172
12171
  return preferredCacheDirectories;
12173
12172
  }
12174
12173
  exports$10.PREFERRED_MODULE_CACHE_DIRECTORIES = getPreferredCacheDirectories();
12175
12174
  exports$10.CONFIG_DIRECTORY = getConfigDir();
12176
12175
  const DATA_DIRECTORY = exports$10.DATA_DIRECTORY = getDataDir();
12177
- exports$10.LINK_REGISTRY_DIRECTORY = path$47.join(DATA_DIRECTORY, "link");
12178
- exports$10.GLOBAL_MODULE_DIRECTORY = path$47.join(DATA_DIRECTORY, "global");
12176
+ exports$10.LINK_REGISTRY_DIRECTORY = path$48.join(DATA_DIRECTORY, "link");
12177
+ exports$10.GLOBAL_MODULE_DIRECTORY = path$48.join(DATA_DIRECTORY, "global");
12179
12178
  exports$10.NODE_BIN_PATH = process.execPath;
12180
12179
  exports$10.YARN_BIN_PATH = getYarnBinPath();
12181
12180
  function getYarnBinPath() {
12182
12181
  if (isWebpackBundle) return __filename;
12183
- else return path$47.join(__dirname, "..", "bin", "yarn.js");
12182
+ else return path$48.join(__dirname, "..", "bin", "yarn.js");
12184
12183
  }
12185
12184
  exports$10.NODE_MODULES_FOLDER = "node_modules";
12186
12185
  exports$10.NODE_PACKAGE_JSON = "package.json";
12187
12186
  exports$10.POSIX_GLOBAL_PREFIX = `${process.env.DESTDIR || ""}/usr/local`;
12188
- exports$10.FALLBACK_GLOBAL_PREFIX = path$47.join(userHome, ".yarn");
12187
+ exports$10.FALLBACK_GLOBAL_PREFIX = path$48.join(userHome, ".yarn");
12189
12188
  exports$10.META_FOLDER = ".yarn-meta";
12190
12189
  exports$10.INTEGRITY_FILENAME = ".yarn-integrity";
12191
12190
  exports$10.LOCKFILE_FILENAME = "yarn.lock";
@@ -12408,7 +12407,7 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12408
12407
  return obj && obj.__esModule ? obj : { default: obj };
12409
12408
  }
12410
12409
  const invariant = __webpack_require__(7);
12411
- const path$48 = __webpack_require__(0);
12410
+ const path$49 = __webpack_require__(0);
12412
12411
  const ssri = __webpack_require__(55);
12413
12412
  function getName(pattern) {
12414
12413
  return (0, (_normalizePattern || _load_normalizePattern()).normalizePattern)(pattern).name;
@@ -12463,7 +12462,7 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12463
12462
  }
12464
12463
  static fromDirectory(dir, reporter) {
12465
12464
  return (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* () {
12466
- const lockfileLoc = path$48.join(dir, (_constants || _load_constants()).LOCKFILE_FILENAME);
12465
+ const lockfileLoc = path$49.join(dir, (_constants || _load_constants()).LOCKFILE_FILENAME);
12467
12466
  let lockfile;
12468
12467
  let rawLockfile = "";
12469
12468
  let parseResult;
@@ -12816,9 +12815,9 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12816
12815
  function _interopRequireDefault(obj) {
12817
12816
  return obj && obj.__esModule ? obj : { default: obj };
12818
12817
  }
12819
- const path$49 = __webpack_require__(0);
12818
+ const path$50 = __webpack_require__(0);
12820
12819
  const home = exports$33.home = __webpack_require__(36).homedir();
12821
- exports$33.default = (_rootUser || _load_rootUser()).default ? path$49.resolve("/usr/local/share") : home;
12820
+ exports$33.default = (_rootUser || _load_rootUser()).default ? path$50.resolve("/usr/local/share") : home;
12822
12821
  }),
12823
12822
  (function(module$32, exports$34) {
12824
12823
  module$32.exports = function(it) {
@@ -13170,9 +13169,9 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13170
13169
  (function(module$39, exports$41, __webpack_require__) {
13171
13170
  module$39.exports = minimatch;
13172
13171
  minimatch.Minimatch = Minimatch;
13173
- var path$50 = { sep: "/" };
13172
+ var path$51 = { sep: "/" };
13174
13173
  try {
13175
- path$50 = __webpack_require__(0);
13174
+ path$51 = __webpack_require__(0);
13176
13175
  } catch (er) {}
13177
13176
  var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {};
13178
13177
  var expand = __webpack_require__(175);
@@ -13256,7 +13255,7 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13256
13255
  if (typeof pattern !== "string") throw new TypeError("glob pattern string required");
13257
13256
  if (!options) options = {};
13258
13257
  pattern = pattern.trim();
13259
- if (path$50.sep !== "/") pattern = pattern.split(path$50.sep).join("/");
13258
+ if (path$51.sep !== "/") pattern = pattern.split(path$51.sep).join("/");
13260
13259
  this.options = options;
13261
13260
  this.set = [];
13262
13261
  this.pattern = pattern;
@@ -13571,7 +13570,7 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13571
13570
  if (this.empty) return f === "";
13572
13571
  if (f === "/" && partial) return true;
13573
13572
  var options = this.options;
13574
- if (path$50.sep !== "/") f = f.split(path$50.sep).join("/");
13573
+ if (path$51.sep !== "/") f = f.split(path$51.sep).join("/");
13575
13574
  f = f.split(slashSplit);
13576
13575
  this.debug(this.pattern, "split", f);
13577
13576
  var set = this.set;
@@ -13784,7 +13783,7 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13784
13783
  minimatch.Minimatch;
13785
13784
  var inherits = __webpack_require__(42);
13786
13785
  var EE = __webpack_require__(54).EventEmitter;
13787
- var path$51 = __webpack_require__(0);
13786
+ var path$52 = __webpack_require__(0);
13788
13787
  var assert$4 = __webpack_require__(22);
13789
13788
  var isAbsolute = __webpack_require__(76);
13790
13789
  var globSync = __webpack_require__(218);
@@ -14015,7 +14014,7 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
14015
14014
  var e = matchedEntries[i];
14016
14015
  if (prefix) if (prefix !== "/") e = prefix + "/" + e;
14017
14016
  else e = prefix + e;
14018
- if (e.charAt(0) === "/" && !this.nomount) e = path$51.join(this.root, e);
14017
+ if (e.charAt(0) === "/" && !this.nomount) e = path$52.join(this.root, e);
14019
14018
  this._emitMatch(index, e);
14020
14019
  }
14021
14020
  return cb();
@@ -14162,9 +14161,9 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
14162
14161
  if (!exists) return cb();
14163
14162
  if (prefix && isAbsolute(prefix) && !this.nomount) {
14164
14163
  var trail = /[\/\\]$/.test(prefix);
14165
- if (prefix.charAt(0) === "/") prefix = path$51.join(this.root, prefix);
14164
+ if (prefix.charAt(0) === "/") prefix = path$52.join(this.root, prefix);
14166
14165
  else {
14167
- prefix = path$51.resolve(this.root, prefix);
14166
+ prefix = path$52.resolve(this.root, prefix);
14168
14167
  if (trail) prefix += "/";
14169
14168
  }
14170
14169
  }
@@ -14217,11 +14216,11 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
14217
14216
  }),
14218
14217
  (function(module$51, exports$53, __webpack_require__) {
14219
14218
  "use strict";
14220
- function posix(path$52) {
14221
- return path$52.charAt(0) === "/";
14219
+ function posix(path$53) {
14220
+ return path$53.charAt(0) === "/";
14222
14221
  }
14223
- function win32(path$53) {
14224
- var result = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(path$53);
14222
+ function win32(path$54) {
14223
+ var result = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(path$54);
14225
14224
  var device = result[1] || "";
14226
14225
  var isUnc = Boolean(device && device.charAt(1) !== ":");
14227
14226
  return Boolean(result[2] || isUnc);
@@ -15131,7 +15130,7 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15131
15130
  function ownProp(obj, field) {
15132
15131
  return Object.prototype.hasOwnProperty.call(obj, field);
15133
15132
  }
15134
- var path$54 = __webpack_require__(0);
15133
+ var path$55 = __webpack_require__(0);
15135
15134
  var minimatch = __webpack_require__(60);
15136
15135
  var isAbsolute = __webpack_require__(76);
15137
15136
  var Minimatch = minimatch.Minimatch;
@@ -15187,11 +15186,11 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15187
15186
  var cwd = process.cwd();
15188
15187
  if (!ownProp(options, "cwd")) self.cwd = cwd;
15189
15188
  else {
15190
- self.cwd = path$54.resolve(options.cwd);
15189
+ self.cwd = path$55.resolve(options.cwd);
15191
15190
  self.changedCwd = self.cwd !== cwd;
15192
15191
  }
15193
- self.root = options.root || path$54.resolve(self.cwd, "/");
15194
- self.root = path$54.resolve(self.root);
15192
+ self.root = options.root || path$55.resolve(self.cwd, "/");
15193
+ self.root = path$55.resolve(self.root);
15195
15194
  if (process.platform === "win32") self.root = self.root.replace(/\\/g, "/");
15196
15195
  self.cwdAbs = isAbsolute(self.cwd) ? self.cwd : makeAbs(self, self.cwd);
15197
15196
  if (process.platform === "win32") self.cwdAbs = self.cwdAbs.replace(/\\/g, "/");
@@ -15255,28 +15254,28 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15255
15254
  }
15256
15255
  function makeAbs(self, f) {
15257
15256
  var abs = f;
15258
- if (f.charAt(0) === "/") abs = path$54.join(self.root, f);
15257
+ if (f.charAt(0) === "/") abs = path$55.join(self.root, f);
15259
15258
  else if (isAbsolute(f) || f === "") abs = f;
15260
- else if (self.changedCwd) abs = path$54.resolve(self.cwd, f);
15261
- else abs = path$54.resolve(f);
15259
+ else if (self.changedCwd) abs = path$55.resolve(self.cwd, f);
15260
+ else abs = path$55.resolve(f);
15262
15261
  if (process.platform === "win32") abs = abs.replace(/\\/g, "/");
15263
15262
  return abs;
15264
15263
  }
15265
- function isIgnored(self, path$55) {
15264
+ function isIgnored(self, path$56) {
15266
15265
  if (!self.ignore.length) return false;
15267
15266
  return self.ignore.some(function(item) {
15268
- return item.matcher.match(path$55) || !!(item.gmatcher && item.gmatcher.match(path$55));
15267
+ return item.matcher.match(path$56) || !!(item.gmatcher && item.gmatcher.match(path$56));
15269
15268
  });
15270
15269
  }
15271
- function childrenIgnored(self, path$56) {
15270
+ function childrenIgnored(self, path$57) {
15272
15271
  if (!self.ignore.length) return false;
15273
15272
  return self.ignore.some(function(item) {
15274
- return !!(item.gmatcher && item.gmatcher.match(path$56));
15273
+ return !!(item.gmatcher && item.gmatcher.match(path$57));
15275
15274
  });
15276
15275
  }
15277
15276
  }),
15278
15277
  (function(module$71, exports$73, __webpack_require__) {
15279
- var path$57 = __webpack_require__(0);
15278
+ var path$58 = __webpack_require__(0);
15280
15279
  var fs$30 = __webpack_require__(3);
15281
15280
  var _0777 = parseInt("0777", 8);
15282
15281
  module$71.exports = mkdirP.mkdirp = mkdirP.mkdirP = mkdirP;
@@ -15290,7 +15289,7 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15290
15289
  if (mode === void 0) mode = _0777 & ~process.umask();
15291
15290
  if (!made) made = null;
15292
15291
  var cb = f || function() {};
15293
- p = path$57.resolve(p);
15292
+ p = path$58.resolve(p);
15294
15293
  xfs.mkdir(p, mode, function(er) {
15295
15294
  if (!er) {
15296
15295
  made = made || p;
@@ -15298,7 +15297,7 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15298
15297
  }
15299
15298
  switch (er.code) {
15300
15299
  case "ENOENT":
15301
- mkdirP(path$57.dirname(p), opts, function(er, made) {
15300
+ mkdirP(path$58.dirname(p), opts, function(er, made) {
15302
15301
  if (er) cb(er, made);
15303
15302
  else mkdirP(p, opts, cb, made);
15304
15303
  });
@@ -15318,14 +15317,14 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15318
15317
  var xfs = opts.fs || fs$30;
15319
15318
  if (mode === void 0) mode = _0777 & ~process.umask();
15320
15319
  if (!made) made = null;
15321
- p = path$57.resolve(p);
15320
+ p = path$58.resolve(p);
15322
15321
  try {
15323
15322
  xfs.mkdirSync(p, mode);
15324
15323
  made = made || p;
15325
15324
  } catch (err0) {
15326
15325
  switch (err0.code) {
15327
15326
  case "ENOENT":
15328
- made = sync(path$57.dirname(p), opts, made);
15327
+ made = sync(path$58.dirname(p), opts, made);
15329
15328
  sync(p, opts, made);
15330
15329
  break;
15331
15330
  default:
@@ -15780,32 +15779,32 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15780
15779
  exports$83.getDataDir = getDataDir;
15781
15780
  exports$83.getCacheDir = getCacheDir;
15782
15781
  exports$83.getConfigDir = getConfigDir;
15783
- const path$58 = __webpack_require__(0);
15782
+ const path$59 = __webpack_require__(0);
15784
15783
  const userHome = __webpack_require__(45).default;
15785
- const FALLBACK_CONFIG_DIR = path$58.join(userHome, ".config", "yarn");
15786
- const FALLBACK_CACHE_DIR = path$58.join(userHome, ".cache", "yarn");
15784
+ const FALLBACK_CONFIG_DIR = path$59.join(userHome, ".config", "yarn");
15785
+ const FALLBACK_CACHE_DIR = path$59.join(userHome, ".cache", "yarn");
15787
15786
  function getDataDir() {
15788
15787
  if (process.platform === "win32") {
15789
15788
  const WIN32_APPDATA_DIR = getLocalAppDataDir();
15790
- return WIN32_APPDATA_DIR == null ? FALLBACK_CONFIG_DIR : path$58.join(WIN32_APPDATA_DIR, "Data");
15791
- } else if (process.env.XDG_DATA_HOME) return path$58.join(process.env.XDG_DATA_HOME, "yarn");
15789
+ return WIN32_APPDATA_DIR == null ? FALLBACK_CONFIG_DIR : path$59.join(WIN32_APPDATA_DIR, "Data");
15790
+ } else if (process.env.XDG_DATA_HOME) return path$59.join(process.env.XDG_DATA_HOME, "yarn");
15792
15791
  else return FALLBACK_CONFIG_DIR;
15793
15792
  }
15794
15793
  function getCacheDir() {
15795
- if (process.platform === "win32") return path$58.join(getLocalAppDataDir() || path$58.join(userHome, "AppData", "Local", "Yarn"), "Cache");
15796
- else if (process.env.XDG_CACHE_HOME) return path$58.join(process.env.XDG_CACHE_HOME, "yarn");
15797
- else if (process.platform === "darwin") return path$58.join(userHome, "Library", "Caches", "Yarn");
15794
+ if (process.platform === "win32") return path$59.join(getLocalAppDataDir() || path$59.join(userHome, "AppData", "Local", "Yarn"), "Cache");
15795
+ else if (process.env.XDG_CACHE_HOME) return path$59.join(process.env.XDG_CACHE_HOME, "yarn");
15796
+ else if (process.platform === "darwin") return path$59.join(userHome, "Library", "Caches", "Yarn");
15798
15797
  else return FALLBACK_CACHE_DIR;
15799
15798
  }
15800
15799
  function getConfigDir() {
15801
15800
  if (process.platform === "win32") {
15802
15801
  const WIN32_APPDATA_DIR = getLocalAppDataDir();
15803
- return WIN32_APPDATA_DIR == null ? FALLBACK_CONFIG_DIR : path$58.join(WIN32_APPDATA_DIR, "Config");
15804
- } else if (process.env.XDG_CONFIG_HOME) return path$58.join(process.env.XDG_CONFIG_HOME, "yarn");
15802
+ return WIN32_APPDATA_DIR == null ? FALLBACK_CONFIG_DIR : path$59.join(WIN32_APPDATA_DIR, "Config");
15803
+ } else if (process.env.XDG_CONFIG_HOME) return path$59.join(process.env.XDG_CONFIG_HOME, "yarn");
15805
15804
  else return FALLBACK_CONFIG_DIR;
15806
15805
  }
15807
15806
  function getLocalAppDataDir() {
15808
- return process.env.LOCALAPPDATA ? path$58.join(process.env.LOCALAPPDATA, "Yarn") : null;
15807
+ return process.env.LOCALAPPDATA ? path$59.join(process.env.LOCALAPPDATA, "Yarn") : null;
15809
15808
  }
15810
15809
  }),
15811
15810
  ,
@@ -17354,7 +17353,7 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
17354
17353
  minimatch.Minimatch;
17355
17354
  __webpack_require__(75).Glob;
17356
17355
  __webpack_require__(2);
17357
- var path$59 = __webpack_require__(0);
17356
+ var path$60 = __webpack_require__(0);
17358
17357
  var assert$5 = __webpack_require__(22);
17359
17358
  var isAbsolute = __webpack_require__(76);
17360
17359
  var common = __webpack_require__(115);
@@ -17450,7 +17449,7 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
17450
17449
  var e = matchedEntries[i];
17451
17450
  if (prefix) if (prefix.slice(-1) !== "/") e = prefix + "/" + e;
17452
17451
  else e = prefix + e;
17453
- if (e.charAt(0) === "/" && !this.nomount) e = path$59.join(this.root, e);
17452
+ if (e.charAt(0) === "/" && !this.nomount) e = path$60.join(this.root, e);
17454
17453
  this._emitMatch(index, e);
17455
17454
  }
17456
17455
  return;
@@ -17565,9 +17564,9 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
17565
17564
  if (!exists) return;
17566
17565
  if (prefix && isAbsolute(prefix) && !this.nomount) {
17567
17566
  var trail = /[\/\\]$/.test(prefix);
17568
- if (prefix.charAt(0) === "/") prefix = path$59.join(this.root, prefix);
17567
+ if (prefix.charAt(0) === "/") prefix = path$60.join(this.root, prefix);
17569
17568
  else {
17570
- prefix = path$59.resolve(this.root, prefix);
17569
+ prefix = path$60.resolve(this.root, prefix);
17571
17570
  if (trail) prefix += "/";
17572
17571
  }
17573
17572
  }
@@ -17805,7 +17804,7 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
17805
17804
  module$129.exports = rimraf;
17806
17805
  rimraf.sync = rimrafSync;
17807
17806
  var assert$6 = __webpack_require__(22);
17808
- var path$60 = __webpack_require__(0);
17807
+ var path$61 = __webpack_require__(0);
17809
17808
  var fs$33 = __webpack_require__(3);
17810
17809
  var glob = __webpack_require__(75);
17811
17810
  var _0666 = parseInt("666", 8);
@@ -17954,7 +17953,7 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
17954
17953
  if (n === 0) return options.rmdir(p, cb);
17955
17954
  var errState;
17956
17955
  files.forEach(function(f) {
17957
- rimraf(path$60.join(p, f), options, function(er) {
17956
+ rimraf(path$61.join(p, f), options, function(er) {
17958
17957
  if (errState) return;
17959
17958
  if (er) return cb(errState = er);
17960
17959
  if (--n === 0) options.rmdir(p, cb);
@@ -18013,7 +18012,7 @@ var require_lockfile$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
18013
18012
  assert$6(p);
18014
18013
  assert$6(options);
18015
18014
  options.readdirSync(p).forEach(function(f) {
18016
- rimrafSync(path$60.join(p, f), options);
18015
+ rimrafSync(path$61.join(p, f), options);
18017
18016
  });
18018
18017
  var retries = isWindows ? 100 : 1;
18019
18018
  var i = 0;
@@ -22047,10 +22046,31 @@ export default defineConfig({
22047
22046
  }
22048
22047
  };
22049
22048
  //#endregion
22049
+ //#region src/HotUpdateDirUtil.ts
22050
+ const HOT_UPDATE_DIR_NAME = ".hot-updater";
22051
+ const HOT_UPDATE_OUTPUT_DIR_NAME = "output";
22052
+ const HOT_UPDATE_LOG_DIR_NAME = "log";
22053
+ const HotUpdateDirUtil = {
22054
+ dirName: HOT_UPDATE_DIR_NAME,
22055
+ outputDirName: HOT_UPDATE_OUTPUT_DIR_NAME,
22056
+ logDirName: HOT_UPDATE_LOG_DIR_NAME,
22057
+ outputGitignorePath: `${HOT_UPDATE_DIR_NAME}/${HOT_UPDATE_OUTPUT_DIR_NAME}`,
22058
+ logGitignorePath: `${HOT_UPDATE_DIR_NAME}/${HOT_UPDATE_LOG_DIR_NAME}`,
22059
+ getDirPath: ({ cwd }) => {
22060
+ return node_path.default.join(cwd, HOT_UPDATE_DIR_NAME);
22061
+ },
22062
+ getDefaultOutputPath: ({ cwd }) => {
22063
+ return node_path.default.join(cwd, HOT_UPDATE_DIR_NAME, HOT_UPDATE_OUTPUT_DIR_NAME);
22064
+ },
22065
+ getLogDirPath: ({ cwd }) => {
22066
+ return node_path.default.join(cwd, HOT_UPDATE_DIR_NAME, HOT_UPDATE_LOG_DIR_NAME);
22067
+ }
22068
+ };
22069
+ //#endregion
22050
22070
  //#region src/copyDirToTmp.ts
22051
22071
  const copyDirToTmp = async (dir, childDirname) => {
22052
22072
  const cwd = getCwd();
22053
- const hotUpdaterDir = _hot_updater_core.HotUpdateDirUtil.getDirPath({ cwd });
22073
+ const hotUpdaterDir = HotUpdateDirUtil.getDirPath({ cwd });
22054
22074
  const tmpDir = childDirname ? path.default.join(hotUpdaterDir, childDirname) : hotUpdaterDir;
22055
22075
  try {
22056
22076
  await fs_promises.default.rm(tmpDir, {
@@ -24684,10 +24704,10 @@ const encode = (s) => raw.reduce((s, c) => s.split(c).join(toWin.get(c)), s);
24684
24704
  const decode = (s) => win.reduce((s, c) => s.split(c).join(toRaw.get(c)), s);
24685
24705
  //#endregion
24686
24706
  //#region ../../node_modules/.pnpm/tar@7.5.1/node_modules/tar/dist/esm/write-entry.js
24687
- const prefixPath = (path$41, prefix) => {
24688
- if (!prefix) return normalizeWindowsPath(path$41);
24689
- path$41 = normalizeWindowsPath(path$41).replace(/^\.(\/|$)/, "");
24690
- return stripTrailingSlashes(prefix) + "/" + path$41;
24707
+ const prefixPath = (path$42, prefix) => {
24708
+ if (!prefix) return normalizeWindowsPath(path$42);
24709
+ path$42 = normalizeWindowsPath(path$42).replace(/^\.(\/|$)/, "");
24710
+ return stripTrailingSlashes(prefix) + "/" + path$42;
24691
24711
  };
24692
24712
  const maxReadSize = 16 * 1024 * 1024;
24693
24713
  const PROCESS$1 = Symbol("process");
@@ -24811,8 +24831,8 @@ var WriteEntry = class extends Minipass {
24811
24831
  [MODE](mode) {
24812
24832
  return modeFix(mode, this.type === "Directory", this.portable);
24813
24833
  }
24814
- [PREFIX](path$42) {
24815
- return prefixPath(path$42, this.prefix);
24834
+ [PREFIX](path$43) {
24835
+ return prefixPath(path$43, this.prefix);
24816
24836
  }
24817
24837
  [HEADER]() {
24818
24838
  /* c8 ignore start */
@@ -25144,8 +25164,8 @@ var WriteEntryTar = class extends Minipass {
25144
25164
  super.write(b);
25145
25165
  readEntry.pipe(this);
25146
25166
  }
25147
- [PREFIX](path$43) {
25148
- return prefixPath(path$43, this.prefix);
25167
+ [PREFIX](path$44) {
25168
+ return prefixPath(path$44, this.prefix);
25149
25169
  }
25150
25170
  [MODE](mode) {
25151
25171
  return modeFix(mode, this.type === "Directory", this.portable);
@@ -25452,8 +25472,8 @@ var PackJob = class {
25452
25472
  pending = false;
25453
25473
  ignore = false;
25454
25474
  piped = false;
25455
- constructor(path$37, absolute) {
25456
- this.path = path$37 || "./";
25475
+ constructor(path$38, absolute) {
25476
+ this.path = path$38 || "./";
25457
25477
  this.absolute = absolute;
25458
25478
  }
25459
25479
  };
@@ -25558,32 +25578,32 @@ var Pack = class extends Minipass {
25558
25578
  [WRITE](chunk) {
25559
25579
  return super.write(chunk);
25560
25580
  }
25561
- add(path$38) {
25562
- this.write(path$38);
25581
+ add(path$39) {
25582
+ this.write(path$39);
25563
25583
  return this;
25564
25584
  }
25565
- end(path$39, encoding, cb) {
25585
+ end(path$40, encoding, cb) {
25566
25586
  /* c8 ignore start */
25567
- if (typeof path$39 === "function") {
25568
- cb = path$39;
25569
- path$39 = void 0;
25587
+ if (typeof path$40 === "function") {
25588
+ cb = path$40;
25589
+ path$40 = void 0;
25570
25590
  }
25571
25591
  if (typeof encoding === "function") {
25572
25592
  cb = encoding;
25573
25593
  encoding = void 0;
25574
25594
  }
25575
25595
  /* c8 ignore stop */
25576
- if (path$39) this.add(path$39);
25596
+ if (path$40) this.add(path$40);
25577
25597
  this[ENDED$1] = true;
25578
25598
  this[PROCESS]();
25579
25599
  /* c8 ignore next */
25580
25600
  if (cb) cb();
25581
25601
  return this;
25582
25602
  }
25583
- write(path$40) {
25603
+ write(path$41) {
25584
25604
  if (this[ENDED$1]) throw new Error("write after end");
25585
- if (path$40 instanceof ReadEntry) this[ADDTARENTRY](path$40);
25586
- else this[ADDFSENTRY](path$40);
25605
+ if (path$41 instanceof ReadEntry) this[ADDTARENTRY](path$41);
25606
+ else this[ADDFSENTRY](path$41);
25587
25607
  return this.flowing;
25588
25608
  }
25589
25609
  [ADDTARENTRY](p) {
@@ -47803,6 +47823,7 @@ function transformTemplate(templateString, values) {
47803
47823
  exports.BuildLogger = BuildLogger;
47804
47824
  exports.ConfigBuilder = ConfigBuilder;
47805
47825
  exports.HOT_UPDATER_SERVER_PACKAGE_VERSION_ENV = HOT_UPDATER_SERVER_PACKAGE_VERSION_ENV;
47826
+ exports.HotUpdateDirUtil = HotUpdateDirUtil;
47806
47827
  exports.banner = banner;
47807
47828
  exports.colors = import_picocolors.default;
47808
47829
  exports.copyDirToTmp = copyDirToTmp;
package/dist/index.d.cts CHANGED
@@ -235,6 +235,30 @@ interface ReactNativeMetadata {
235
235
  }
236
236
  declare const getReactNativeMetadatas: (cwd?: string) => ReactNativeMetadata;
237
237
  //#endregion
238
+ //#region src/HotUpdateDirUtil.d.ts
239
+ declare const HotUpdateDirUtil: {
240
+ readonly dirName: ".hot-updater";
241
+ readonly outputDirName: "output";
242
+ readonly logDirName: "log";
243
+ readonly outputGitignorePath: ".hot-updater/output";
244
+ readonly logGitignorePath: ".hot-updater/log";
245
+ readonly getDirPath: ({
246
+ cwd
247
+ }: {
248
+ cwd: string;
249
+ }) => string;
250
+ readonly getDefaultOutputPath: ({
251
+ cwd
252
+ }: {
253
+ cwd: string;
254
+ }) => string;
255
+ readonly getLogDirPath: ({
256
+ cwd
257
+ }: {
258
+ cwd: string;
259
+ }) => string;
260
+ };
261
+ //#endregion
238
262
  //#region src/LogWriter.d.ts
239
263
  type HotUpdaterLogWriter = {
240
264
  logFilePath: string | null;
@@ -829,4 +853,4 @@ type TransformTemplateArgs<T extends string> = { [Key in ExtractPlaceholders<T>]
829
853
  */
830
854
  declare function transformTemplate<T extends string>(templateString: T, values: TransformTemplateArgs<T>): string;
831
855
  //#endregion
832
- export { BuildLogger, BuildLoggerConfig, BuildType, ConfigBuilder, ConfigResponse, HOT_UPDATER_SERVER_PACKAGE_VERSION_ENV, HotUpdaterConfigOptions, HotUpdaterLogWriter, IConfigBuilder, ImportInfo, PromptProgress, PromptSpinner, ProviderConfig, ReactNativeMetadata, banner, picocolors as colors, copyDirToTmp, createLogWriter, createTarBr, createTarBrTargetFiles, createTarGz, createTarGzTargetFiles, createZip, createZipTargetFiles, decryptJson, encryptJson, ensureInstallPackages, getAndroidSdkPath, getCwd, getPackageManager, getReactNativeMetadatas, link, loadConfig, log, makeEnv, index_d_exports as p, printBanner, resolveHotUpdaterServerVersion, resolvePackageVersion, stripAnsi, transformEnv, transformTemplate };
856
+ export { BuildLogger, BuildLoggerConfig, BuildType, ConfigBuilder, ConfigResponse, HOT_UPDATER_SERVER_PACKAGE_VERSION_ENV, HotUpdateDirUtil, HotUpdaterConfigOptions, HotUpdaterLogWriter, IConfigBuilder, ImportInfo, PromptProgress, PromptSpinner, ProviderConfig, ReactNativeMetadata, banner, picocolors as colors, copyDirToTmp, createLogWriter, createTarBr, createTarBrTargetFiles, createTarGz, createTarGzTargetFiles, createZip, createZipTargetFiles, decryptJson, encryptJson, ensureInstallPackages, getAndroidSdkPath, getCwd, getPackageManager, getReactNativeMetadatas, link, loadConfig, log, makeEnv, index_d_exports as p, printBanner, resolveHotUpdaterServerVersion, resolvePackageVersion, stripAnsi, transformEnv, transformTemplate };
package/dist/index.d.mts CHANGED
@@ -233,6 +233,30 @@ interface ReactNativeMetadata {
233
233
  }
234
234
  declare const getReactNativeMetadatas: (cwd?: string) => ReactNativeMetadata;
235
235
  //#endregion
236
+ //#region src/HotUpdateDirUtil.d.ts
237
+ declare const HotUpdateDirUtil: {
238
+ readonly dirName: ".hot-updater";
239
+ readonly outputDirName: "output";
240
+ readonly logDirName: "log";
241
+ readonly outputGitignorePath: ".hot-updater/output";
242
+ readonly logGitignorePath: ".hot-updater/log";
243
+ readonly getDirPath: ({
244
+ cwd
245
+ }: {
246
+ cwd: string;
247
+ }) => string;
248
+ readonly getDefaultOutputPath: ({
249
+ cwd
250
+ }: {
251
+ cwd: string;
252
+ }) => string;
253
+ readonly getLogDirPath: ({
254
+ cwd
255
+ }: {
256
+ cwd: string;
257
+ }) => string;
258
+ };
259
+ //#endregion
236
260
  //#region src/LogWriter.d.ts
237
261
  type HotUpdaterLogWriter = {
238
262
  logFilePath: string | null;
@@ -827,4 +851,4 @@ type TransformTemplateArgs<T extends string> = { [Key in ExtractPlaceholders<T>]
827
851
  */
828
852
  declare function transformTemplate<T extends string>(templateString: T, values: TransformTemplateArgs<T>): string;
829
853
  //#endregion
830
- export { BuildLogger, BuildLoggerConfig, BuildType, ConfigBuilder, ConfigResponse, HOT_UPDATER_SERVER_PACKAGE_VERSION_ENV, HotUpdaterConfigOptions, HotUpdaterLogWriter, IConfigBuilder, ImportInfo, PromptProgress, PromptSpinner, ProviderConfig, ReactNativeMetadata, banner, picocolors as colors, copyDirToTmp, createLogWriter, createTarBr, createTarBrTargetFiles, createTarGz, createTarGzTargetFiles, createZip, createZipTargetFiles, decryptJson, encryptJson, ensureInstallPackages, getAndroidSdkPath, getCwd, getPackageManager, getReactNativeMetadatas, link, loadConfig, log, makeEnv, index_d_exports as p, printBanner, resolveHotUpdaterServerVersion, resolvePackageVersion, stripAnsi, transformEnv, transformTemplate };
854
+ export { BuildLogger, BuildLoggerConfig, BuildType, ConfigBuilder, ConfigResponse, HOT_UPDATER_SERVER_PACKAGE_VERSION_ENV, HotUpdateDirUtil, HotUpdaterConfigOptions, HotUpdaterLogWriter, IConfigBuilder, ImportInfo, PromptProgress, PromptSpinner, ProviderConfig, ReactNativeMetadata, banner, picocolors as colors, copyDirToTmp, createLogWriter, createTarBr, createTarBrTargetFiles, createTarGz, createTarGzTargetFiles, createZip, createZipTargetFiles, decryptJson, encryptJson, ensureInstallPackages, getAndroidSdkPath, getCwd, getPackageManager, getReactNativeMetadatas, link, loadConfig, log, makeEnv, index_d_exports as p, printBanner, resolveHotUpdaterServerVersion, resolvePackageVersion, stripAnsi, transformEnv, transformTemplate };
package/dist/index.mjs CHANGED
@@ -17,7 +17,6 @@ import fs$2, { appendFileSync, createReadStream, createWriteStream, existsSync,
17
17
  import path$1, { basename, dirname as dirname$1, join, posix, win32 } from "node:path";
18
18
  import { aborted, callbackify, debuglog, inspect, promisify, stripVTControlCharacters } from "node:util";
19
19
  import os, { constants } from "node:os";
20
- import { HotUpdateDirUtil } from "@hot-updater/core";
21
20
  import { EventEmitter as EventEmitter$1, addAbortListener, on, once, setMaxListeners } from "node:events";
22
21
  import Stream, { Duplex, PassThrough as PassThrough$1, Readable as Readable$1, Transform, Writable, getDefaultHighWaterMark } from "node:stream";
23
22
  import { StringDecoder } from "node:string_decoder";
@@ -22001,6 +22000,27 @@ export default defineConfig({
22001
22000
  }
22002
22001
  };
22003
22002
  //#endregion
22003
+ //#region src/HotUpdateDirUtil.ts
22004
+ const HOT_UPDATE_DIR_NAME = ".hot-updater";
22005
+ const HOT_UPDATE_OUTPUT_DIR_NAME = "output";
22006
+ const HOT_UPDATE_LOG_DIR_NAME = "log";
22007
+ const HotUpdateDirUtil = {
22008
+ dirName: HOT_UPDATE_DIR_NAME,
22009
+ outputDirName: HOT_UPDATE_OUTPUT_DIR_NAME,
22010
+ logDirName: HOT_UPDATE_LOG_DIR_NAME,
22011
+ outputGitignorePath: `${HOT_UPDATE_DIR_NAME}/${HOT_UPDATE_OUTPUT_DIR_NAME}`,
22012
+ logGitignorePath: `${HOT_UPDATE_DIR_NAME}/${HOT_UPDATE_LOG_DIR_NAME}`,
22013
+ getDirPath: ({ cwd }) => {
22014
+ return path$1.join(cwd, HOT_UPDATE_DIR_NAME);
22015
+ },
22016
+ getDefaultOutputPath: ({ cwd }) => {
22017
+ return path$1.join(cwd, HOT_UPDATE_DIR_NAME, HOT_UPDATE_OUTPUT_DIR_NAME);
22018
+ },
22019
+ getLogDirPath: ({ cwd }) => {
22020
+ return path$1.join(cwd, HOT_UPDATE_DIR_NAME, HOT_UPDATE_LOG_DIR_NAME);
22021
+ }
22022
+ };
22023
+ //#endregion
22004
22024
  //#region src/copyDirToTmp.ts
22005
22025
  const copyDirToTmp = async (dir, childDirname) => {
22006
22026
  const cwd = getCwd();
@@ -47755,4 +47775,4 @@ function transformTemplate(templateString, values) {
47755
47775
  }
47756
47776
  //#endregion
47757
47777
  var colors = import_picocolors.default;
47758
- export { BuildLogger, ConfigBuilder, HOT_UPDATER_SERVER_PACKAGE_VERSION_ENV, banner, colors, copyDirToTmp, createLogWriter, createTarBr, createTarBrTargetFiles, createTarGz, createTarGzTargetFiles, createZip, createZipTargetFiles, decryptJson, encryptJson, ensureInstallPackages, getAndroidSdkPath, getCwd, getPackageManager, getReactNativeMetadatas, link, loadConfig, log, makeEnv, dist_exports as p, printBanner, resolveHotUpdaterServerVersion, resolvePackageVersion, stripAnsi, transformEnv, transformTemplate };
47778
+ export { BuildLogger, ConfigBuilder, HOT_UPDATER_SERVER_PACKAGE_VERSION_ENV, HotUpdateDirUtil, banner, colors, copyDirToTmp, createLogWriter, createTarBr, createTarBrTargetFiles, createTarGz, createTarGzTargetFiles, createZip, createZipTargetFiles, decryptJson, encryptJson, ensureInstallPackages, getAndroidSdkPath, getCwd, getPackageManager, getReactNativeMetadatas, link, loadConfig, log, makeEnv, dist_exports as p, printBanner, resolveHotUpdaterServerVersion, resolvePackageVersion, stripAnsi, transformEnv, transformTemplate };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hot-updater/cli-tools",
3
- "version": "0.29.1",
3
+ "version": "0.29.2",
4
4
  "type": "module",
5
5
  "description": "CLI utilities for Hot Updater",
6
6
  "sideEffects": false,
@@ -41,8 +41,7 @@
41
41
  "dependencies": {
42
42
  "oxc-transform": "0.121.0",
43
43
  "unconfig": "7.5.0",
44
- "@hot-updater/core": "0.29.1",
45
- "@hot-updater/plugin-core": "0.29.1"
44
+ "@hot-updater/plugin-core": "0.29.2"
46
45
  },
47
46
  "devDependencies": {
48
47
  "@clack/prompts": "1.0.1",
@@ -59,7 +58,7 @@
59
58
  "tar": "^7.5.1",
60
59
  "typescript": "5.8.2",
61
60
  "workspace-tools": "^0.36.4",
62
- "@hot-updater/test-utils": "0.29.1"
61
+ "@hot-updater/test-utils": "0.29.2"
63
62
  },
64
63
  "inlinedDependencies": {
65
64
  "@babel/code-frame": "7.29.0",