hot-updater 0.8.0 → 0.10.0
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 +15 -5
- package/dist/index.js +15 -5
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -16098,20 +16098,26 @@ var __webpack_exports__ = {};
|
|
|
16098
16098
|
})
|
|
16099
16099
|
]);
|
|
16100
16100
|
try {
|
|
16101
|
+
const taskRef = {
|
|
16102
|
+
buildResult: null
|
|
16103
|
+
};
|
|
16101
16104
|
await prompts_namespaceObject.tasks([
|
|
16102
16105
|
{
|
|
16103
16106
|
title: `📦 Building Bundle (${buildPlugin.name})`,
|
|
16104
16107
|
task: async ()=>{
|
|
16105
|
-
|
|
16108
|
+
taskRef.buildResult = await buildPlugin.build({
|
|
16106
16109
|
platform: platform
|
|
16107
16110
|
});
|
|
16108
|
-
await createZip(buildResult.buildPath, "bundle.zip");
|
|
16109
|
-
bundleId = buildResult.bundleId;
|
|
16111
|
+
await createZip(taskRef.buildResult.buildPath, "bundle.zip");
|
|
16112
|
+
bundleId = taskRef.buildResult.bundleId;
|
|
16110
16113
|
bundlePath = external_path_default().join((0, plugin_core_namespaceObject.getCwd)(), "bundle.zip");
|
|
16111
16114
|
fileHash = await getFileHashFromFile(bundlePath);
|
|
16112
16115
|
return `✅ Build Complete (${buildPlugin.name})`;
|
|
16113
16116
|
}
|
|
16114
|
-
}
|
|
16117
|
+
}
|
|
16118
|
+
]);
|
|
16119
|
+
if (taskRef.buildResult?.stdout) prompts_namespaceObject.log.success(taskRef.buildResult.stdout);
|
|
16120
|
+
await prompts_namespaceObject.tasks([
|
|
16115
16121
|
{
|
|
16116
16122
|
title: `📦 Uploading to Storage (${storagePlugin.name})`,
|
|
16117
16123
|
task: async ()=>{
|
|
@@ -22513,7 +22519,11 @@ export default HotUpdater.wrap({
|
|
|
22513
22519
|
source: "%%source%%",
|
|
22514
22520
|
})(App);`;
|
|
22515
22521
|
const deployWorker = async (oauth_token, accountId, { d1DatabaseId, d1DatabaseName })=>{
|
|
22516
|
-
const workerPath = require.resolve("@hot-updater/cloudflare/worker"
|
|
22522
|
+
const workerPath = require.resolve("@hot-updater/cloudflare/worker", {
|
|
22523
|
+
paths: [
|
|
22524
|
+
getCwd()
|
|
22525
|
+
]
|
|
22526
|
+
});
|
|
22517
22527
|
const workerDir = external_path_default().dirname(workerPath);
|
|
22518
22528
|
const { tmpDir, removeTmpDir } = await (0, plugin_core_namespaceObject.copyDirToTmp)(workerDir);
|
|
22519
22529
|
try {
|
package/dist/index.js
CHANGED
|
@@ -15997,20 +15997,26 @@ const deploy = async (options)=>{
|
|
|
15997
15997
|
})
|
|
15998
15998
|
]);
|
|
15999
15999
|
try {
|
|
16000
|
+
const taskRef = {
|
|
16001
|
+
buildResult: null
|
|
16002
|
+
};
|
|
16000
16003
|
await __WEBPACK_EXTERNAL_MODULE__clack_prompts_3cae1695__.tasks([
|
|
16001
16004
|
{
|
|
16002
16005
|
title: `📦 Building Bundle (${buildPlugin.name})`,
|
|
16003
16006
|
task: async ()=>{
|
|
16004
|
-
|
|
16007
|
+
taskRef.buildResult = await buildPlugin.build({
|
|
16005
16008
|
platform: platform
|
|
16006
16009
|
});
|
|
16007
|
-
await createZip(buildResult.buildPath, "bundle.zip");
|
|
16008
|
-
bundleId = buildResult.bundleId;
|
|
16010
|
+
await createZip(taskRef.buildResult.buildPath, "bundle.zip");
|
|
16011
|
+
bundleId = taskRef.buildResult.bundleId;
|
|
16009
16012
|
bundlePath = external_path_["default"].join((0, __WEBPACK_EXTERNAL_MODULE__hot_updater_plugin_core_40c1c502__.getCwd)(), "bundle.zip");
|
|
16010
16013
|
fileHash = await getFileHashFromFile(bundlePath);
|
|
16011
16014
|
return `✅ Build Complete (${buildPlugin.name})`;
|
|
16012
16015
|
}
|
|
16013
|
-
}
|
|
16016
|
+
}
|
|
16017
|
+
]);
|
|
16018
|
+
if (taskRef.buildResult?.stdout) __WEBPACK_EXTERNAL_MODULE__clack_prompts_3cae1695__.log.success(taskRef.buildResult.stdout);
|
|
16019
|
+
await __WEBPACK_EXTERNAL_MODULE__clack_prompts_3cae1695__.tasks([
|
|
16014
16020
|
{
|
|
16015
16021
|
title: `📦 Uploading to Storage (${storagePlugin.name})`,
|
|
16016
16022
|
task: async ()=>{
|
|
@@ -22406,7 +22412,11 @@ export default HotUpdater.wrap({
|
|
|
22406
22412
|
source: "%%source%%",
|
|
22407
22413
|
})(App);`;
|
|
22408
22414
|
const deployWorker = async (oauth_token, accountId, { d1DatabaseId, d1DatabaseName })=>{
|
|
22409
|
-
const workerPath = require.resolve("@hot-updater/cloudflare/worker"
|
|
22415
|
+
const workerPath = require.resolve("@hot-updater/cloudflare/worker", {
|
|
22416
|
+
paths: [
|
|
22417
|
+
getCwd()
|
|
22418
|
+
]
|
|
22419
|
+
});
|
|
22410
22420
|
const workerDir = external_path_["default"].dirname(workerPath);
|
|
22411
22421
|
const { tmpDir, removeTmpDir } = await (0, __WEBPACK_EXTERNAL_MODULE__hot_updater_plugin_core_40c1c502__.copyDirToTmp)(workerDir);
|
|
22412
22422
|
try {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hot-updater",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.10.0",
|
|
5
5
|
"bin": {
|
|
6
6
|
"hot-updater": "./dist/index.js"
|
|
7
7
|
},
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@clack/prompts": "^0.9.0",
|
|
52
|
-
"@hot-updater/console": "0.
|
|
53
|
-
"@hot-updater/core": "0.
|
|
54
|
-
"@hot-updater/plugin-core": "0.
|
|
52
|
+
"@hot-updater/console": "0.10.0",
|
|
53
|
+
"@hot-updater/core": "0.10.0",
|
|
54
|
+
"@hot-updater/plugin-core": "0.10.0",
|
|
55
55
|
"commander": "^11.1.0",
|
|
56
56
|
"cosmiconfig": "^9.0.0",
|
|
57
57
|
"cosmiconfig-typescript-loader": "^5.0.0"
|