hot-updater 0.9.0 → 0.10.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/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
- const buildResult = await buildPlugin.build({
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 ()=>{
@@ -22489,7 +22495,7 @@ import { defineConfig } from "hot-updater";
22489
22495
  import "dotenv/config";
22490
22496
 
22491
22497
  export default defineConfig({
22492
- build: metro(),
22498
+ build: metro({ enableHermes: true }),
22493
22499
  storage: r2Storage({
22494
22500
  bucketName: process.env.HOT_UPDATER_CLOUDFLARE_R2_BUCKET_NAME!,
22495
22501
  accountId: process.env.HOT_UPDATER_CLOUDFLARE_ACCOUNT_ID!,
@@ -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 {
@@ -22753,7 +22763,7 @@ import { defineConfig } from "hot-updater";
22753
22763
  import "dotenv/config";
22754
22764
 
22755
22765
  export default defineConfig({
22756
- build: metro(),
22766
+ build: metro({ enableHermes: true }),
22757
22767
  storage: supabaseStorage({
22758
22768
  supabaseUrl: process.env.HOT_UPDATER_SUPABASE_URL!,
22759
22769
  supabaseAnonKey: process.env.HOT_UPDATER_SUPABASE_ANON_KEY!,
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
- const buildResult = await buildPlugin.build({
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 ()=>{
@@ -22382,7 +22388,7 @@ import { defineConfig } from "hot-updater";
22382
22388
  import "dotenv/config";
22383
22389
 
22384
22390
  export default defineConfig({
22385
- build: metro(),
22391
+ build: metro({ enableHermes: true }),
22386
22392
  storage: r2Storage({
22387
22393
  bucketName: process.env.HOT_UPDATER_CLOUDFLARE_R2_BUCKET_NAME!,
22388
22394
  accountId: process.env.HOT_UPDATER_CLOUDFLARE_ACCOUNT_ID!,
@@ -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 {
@@ -22646,7 +22656,7 @@ import { defineConfig } from "hot-updater";
22646
22656
  import "dotenv/config";
22647
22657
 
22648
22658
  export default defineConfig({
22649
- build: metro(),
22659
+ build: metro({ enableHermes: true }),
22650
22660
  storage: supabaseStorage({
22651
22661
  supabaseUrl: process.env.HOT_UPDATER_SUPABASE_URL!,
22652
22662
  supabaseAnonKey: process.env.HOT_UPDATER_SUPABASE_ANON_KEY!,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hot-updater",
3
3
  "type": "module",
4
- "version": "0.9.0",
4
+ "version": "0.10.1",
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.9.0",
53
- "@hot-updater/core": "0.9.0",
54
- "@hot-updater/plugin-core": "0.9.0",
52
+ "@hot-updater/console": "0.10.1",
53
+ "@hot-updater/core": "0.10.1",
54
+ "@hot-updater/plugin-core": "0.10.1",
55
55
  "commander": "^11.1.0",
56
56
  "cosmiconfig": "^9.0.0",
57
57
  "cosmiconfig-typescript-loader": "^5.0.0"