hot-updater 0.1.0 → 0.1.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.
- package/dist/chunk-XCQPUXG2.js +10 -0
- package/dist/config.js +2 -0
- package/dist/index.cjs +0 -3
- package/dist/index.js +3 -2
- package/package.json +6 -6
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// ../../node_modules/.pnpm/tsup@8.3.0_@swc+core@1.7.42_@swc+helpers@0.5.13__jiti@1.21.6_postcss@8.4.47_typescript@5.6.2_yaml@2.4.5/node_modules/tsup/assets/esm_shims.js
|
|
2
|
+
import { fileURLToPath } from "url";
|
|
3
|
+
import path from "path";
|
|
4
|
+
var getFilename = () => fileURLToPath(import.meta.url);
|
|
5
|
+
var getDirname = () => path.dirname(getFilename());
|
|
6
|
+
var __dirname = /* @__PURE__ */ getDirname();
|
|
7
|
+
|
|
8
|
+
export {
|
|
9
|
+
__dirname
|
|
10
|
+
};
|
package/dist/config.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -290,10 +290,7 @@ var prune = async (options) => {
|
|
|
290
290
|
};
|
|
291
291
|
|
|
292
292
|
// src/packageJson.ts
|
|
293
|
-
var import_url = require("url");
|
|
294
293
|
var import_read_package_up = require("read-package-up");
|
|
295
|
-
var import_meta = {};
|
|
296
|
-
var __dirname = (0, import_url.fileURLToPath)(new URL(".", import_meta.url));
|
|
297
294
|
var packageJsonData = (0, import_read_package_up.readPackageUpSync)({
|
|
298
295
|
cwd: __dirname
|
|
299
296
|
});
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
__dirname
|
|
4
|
+
} from "./chunk-XCQPUXG2.js";
|
|
2
5
|
|
|
3
6
|
// src/commands/console.ts
|
|
4
7
|
import { serve } from "@hono/node-server";
|
|
@@ -267,9 +270,7 @@ var prune = async (options) => {
|
|
|
267
270
|
};
|
|
268
271
|
|
|
269
272
|
// src/packageJson.ts
|
|
270
|
-
import { fileURLToPath } from "url";
|
|
271
273
|
import { readPackageUpSync } from "read-package-up";
|
|
272
|
-
var __dirname = fileURLToPath(new URL(".", import.meta.url));
|
|
273
274
|
var packageJsonData = readPackageUpSync({
|
|
274
275
|
cwd: __dirname
|
|
275
276
|
});
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hot-updater",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.1",
|
|
5
5
|
"bin": {
|
|
6
|
-
"hot-updater": "./dist/index.
|
|
6
|
+
"hot-updater": "./dist/index.js"
|
|
7
7
|
},
|
|
8
8
|
"exports": {
|
|
9
9
|
"./config": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@clack/prompts": "^0.7.0",
|
|
32
32
|
"@hono/node-server": "^1.13.4",
|
|
33
|
-
"@hot-updater/console": "0.1.
|
|
33
|
+
"@hot-updater/console": "0.1.1",
|
|
34
34
|
"boxen": "^8.0.1",
|
|
35
35
|
"commander": "^11.1.0",
|
|
36
36
|
"cosmiconfig": "^9.0.0",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"plist": "^3.1.0",
|
|
41
41
|
"read-package-up": "^11.0.0",
|
|
42
42
|
"workspace-tools": "^0.36.4",
|
|
43
|
-
"@hot-updater/plugin-core": "0.1.
|
|
44
|
-
"@hot-updater/utils": "0.1.
|
|
43
|
+
"@hot-updater/plugin-core": "0.1.1",
|
|
44
|
+
"@hot-updater/utils": "0.1.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/connect": "^3.4.38",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@types/plist": "^3.0.5"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
|
-
"build": "tsup src/index.ts src/config.ts --format esm,cjs --dts",
|
|
52
|
+
"build": "tsup src/index.ts src/config.ts --format esm,cjs --dts --shims",
|
|
53
53
|
"test:type": "tsc --noEmit"
|
|
54
54
|
}
|
|
55
55
|
}
|