@hot-updater/cli-tools 0.30.5 → 0.30.7
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.mjs +4 -4
- package/package.json +10 -6
- package/dist/index.cjs +0 -48271
- package/dist/index.d.cts +0 -924
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
|
|
27
|
+
import fsPromises 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
|
|
25991
|
+
if (preserve) return fsPromises.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
|
|
42058
|
+
const stats = await fsPromises.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
|
|
47127
|
+
return _readPackage(await fsPromises.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,16 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/cli-tools",
|
|
3
|
-
"version": "0.30.
|
|
3
|
+
"version": "0.30.7",
|
|
4
4
|
"type": "module",
|
|
5
|
+
"engines": {
|
|
6
|
+
"node": ">=20.19.0"
|
|
7
|
+
},
|
|
5
8
|
"description": "CLI utilities for Hot Updater",
|
|
6
9
|
"sideEffects": false,
|
|
7
|
-
"main": "./dist/index.
|
|
10
|
+
"main": "./dist/index.mjs",
|
|
8
11
|
"module": "./dist/index.mjs",
|
|
9
|
-
"types": "./dist/index.d.
|
|
12
|
+
"types": "./dist/index.d.mts",
|
|
10
13
|
"exports": {
|
|
11
14
|
".": {
|
|
15
|
+
"types": "./dist/index.d.mts",
|
|
12
16
|
"import": "./dist/index.mjs",
|
|
13
|
-
"require": "./dist/index.
|
|
17
|
+
"require": "./dist/index.mjs"
|
|
14
18
|
},
|
|
15
19
|
"./package.json": "./package.json"
|
|
16
20
|
},
|
|
@@ -42,7 +46,7 @@
|
|
|
42
46
|
"oxc-transform": "0.121.0",
|
|
43
47
|
"typescript": "6.0.2",
|
|
44
48
|
"unconfig": "7.5.0",
|
|
45
|
-
"@hot-updater/plugin-core": "0.30.
|
|
49
|
+
"@hot-updater/plugin-core": "0.30.7"
|
|
46
50
|
},
|
|
47
51
|
"devDependencies": {
|
|
48
52
|
"@clack/prompts": "1.0.1",
|
|
@@ -58,7 +62,7 @@
|
|
|
58
62
|
"semver": "^7.6.3",
|
|
59
63
|
"tar": "^7.5.1",
|
|
60
64
|
"workspace-tools": "^0.36.4",
|
|
61
|
-
"@hot-updater/test-utils": "0.30.
|
|
65
|
+
"@hot-updater/test-utils": "0.30.7"
|
|
62
66
|
},
|
|
63
67
|
"inlinedDependencies": {
|
|
64
68
|
"@babel/code-frame": "7.29.0",
|