@hot-updater/cli-tools 0.30.0 → 0.30.1

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.
Files changed (2) hide show
  1. package/dist/index.mjs +4 -4
  2. package/package.json +3 -3
package/dist/index.mjs CHANGED
@@ -24,7 +24,7 @@ import Stream, { Duplex, PassThrough as PassThrough$1, Readable as Readable$1, T
24
24
  import { StringDecoder } from "node:string_decoder";
25
25
  import assert$1 from "node:assert";
26
26
  import { randomBytes } from "node:crypto";
27
- import fsPromises from "node:fs/promises";
27
+ import fsp from "node:fs/promises";
28
28
  import { fileURLToPath } from "node:url";
29
29
  import { ChildProcess, execFile, spawn, spawnSync } from "node:child_process";
30
30
  import { scheduler, setImmediate as setImmediate$1, setTimeout as setTimeout$1 } from "node:timers/promises";
@@ -25988,7 +25988,7 @@ const mkdir = (dir, opt, cb) => {
25988
25988
  else cb();
25989
25989
  };
25990
25990
  if (dir === cwd) return checkCwd(dir, done);
25991
- if (preserve) return fsPromises.mkdir(dir, {
25991
+ if (preserve) return fsp.mkdir(dir, {
25992
25992
  mode,
25993
25993
  recursive: true
25994
25994
  }).then((made) => done(null, made ?? void 0), done);
@@ -42055,7 +42055,7 @@ async function findUp(name, { cwd = process$1.cwd(), type = "file", stopAt } = {
42055
42055
  while (directory) {
42056
42056
  const filePath = isAbsoluteName ? name : path$1.join(directory, name);
42057
42057
  try {
42058
- const stats = await fsPromises.stat(filePath);
42058
+ const stats = await fsp.stat(filePath);
42059
42059
  if (type === "file" && stats.isFile() || type === "directory" && stats.isDirectory()) return filePath;
42060
42060
  } catch {}
42061
42061
  if (directory === stopAt || directory === root) break;
@@ -47124,7 +47124,7 @@ const _readPackage = (file, normalize) => {
47124
47124
  return json;
47125
47125
  };
47126
47126
  async function readPackage({ cwd, normalize = true } = {}) {
47127
- return _readPackage(await fsPromises.readFile(getPackagePath(cwd), "utf8"), normalize);
47127
+ return _readPackage(await fsp.readFile(getPackagePath(cwd), "utf8"), normalize);
47128
47128
  }
47129
47129
  //#endregion
47130
47130
  //#region ../../node_modules/.pnpm/read-package-up@11.0.0/node_modules/read-package-up/index.js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hot-updater/cli-tools",
3
- "version": "0.30.0",
3
+ "version": "0.30.1",
4
4
  "type": "module",
5
5
  "description": "CLI utilities for Hot Updater",
6
6
  "sideEffects": false,
@@ -42,7 +42,7 @@
42
42
  "oxc-transform": "0.121.0",
43
43
  "typescript": "6.0.2",
44
44
  "unconfig": "7.5.0",
45
- "@hot-updater/plugin-core": "0.30.0"
45
+ "@hot-updater/plugin-core": "0.30.1"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@clack/prompts": "1.0.1",
@@ -58,7 +58,7 @@
58
58
  "semver": "^7.6.3",
59
59
  "tar": "^7.5.1",
60
60
  "workspace-tools": "^0.36.4",
61
- "@hot-updater/test-utils": "0.30.0"
61
+ "@hot-updater/test-utils": "0.30.1"
62
62
  },
63
63
  "inlinedDependencies": {
64
64
  "@babel/code-frame": "7.29.0",