@hot-updater/firebase 1.2.0-rc.15 → 1.2.0-rc.17

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.
@@ -4603,7 +4603,7 @@ const createKvAdapter = ({ store, tablePrefix = "" }) => {
4603
4603
  };
4604
4604
  //#endregion
4605
4605
  //#region ../../packages/server/dist/version.mjs
4606
- const HOT_UPDATER_SERVER_VERSION = "1.2.0-rc.15";
4606
+ const HOT_UPDATER_SERVER_VERSION = "1.2.0-rc.17";
4607
4607
  //#endregion
4608
4608
  //#region ../../packages/server/dist/handlerVersionRoutes.mjs
4609
4609
  /**
@@ -7823,7 +7823,7 @@ const runInit = async ({ build, envFile, secretsEnv }) => {
7823
7823
  });
7824
7824
  await (0, _hot_updater_cli_tools.makeEnv)(persistedInputs);
7825
7825
  await removeTmpDir();
7826
- return;
7826
+ return null;
7827
7827
  }
7828
7828
  const functionsCode = (0, _hot_updater_cli_tools.transformEnv)(functionsIndexPath, {
7829
7829
  REGION: currentRegion,
@@ -7926,9 +7926,7 @@ const runInit = async ({ build, envFile, secretsEnv }) => {
7926
7926
  }
7927
7927
  await printTemplate(clientCredential, initializeVariable.projectId, currentRegion, server.clientPlugins, cliEnv);
7928
7928
  await removeTmpDir();
7929
- _hot_updater_cli_tools.p.log.message(`Next step: ${(0, _hot_updater_cli_tools.link)("https://hot-updater.dev/docs/managed/firebase#step-3-add-hotupdater-to-your-project")}`);
7930
- if (!applicationCredentials) _hot_updater_cli_tools.p.log.message("Next step: Change GOOGLE_APPLICATION_CREDENTIALS=your-credentials.json in .env.hotupdater");
7931
- _hot_updater_cli_tools.p.log.success("Done! 🎉");
7929
+ return { nextSteps: [(0, _hot_updater_cli_tools.link)("https://hot-updater.dev/docs/managed/firebase#step-3-add-hotupdater-to-your-project"), ...applicationCredentials ? [] : ["Change GOOGLE_APPLICATION_CREDENTIALS=your-credentials.json in .env.hotupdater"]] };
7932
7930
  };
7933
7931
  //#endregion
7934
7932
  exports.initProvider = initProvider;
@@ -1,4 +1,4 @@
1
- import { RunInitOptions } from "@hot-updater/cli-tools";
1
+ import { RunInitOptions, RunInitResult } from "@hot-updater/cli-tools";
2
2
  //#region iac/init/index.d.ts
3
3
  declare const initProvider: {
4
4
  readonly label: "Firebase";
@@ -86,6 +86,6 @@ declare const mergeIndexes: (originalIndexes: {
86
86
  };
87
87
  /** Points the template's `firebase.json` at the database init sets up. */
88
88
  declare const setFirestoreDatabase: (cwd: string, databaseId: string) => Promise<void>;
89
- declare const runInit: ({ build, envFile, secretsEnv }: RunInitOptions) => Promise<void>;
89
+ declare const runInit: ({ build, envFile, secretsEnv }: RunInitOptions) => Promise<RunInitResult>;
90
90
  //#endregion
91
91
  export { initProvider, mergeIndexes, runInit, setFirestoreDatabase };
@@ -1,4 +1,4 @@
1
- import { RunInitOptions } from "@hot-updater/cli-tools";
1
+ import { RunInitOptions, RunInitResult } from "@hot-updater/cli-tools";
2
2
  //#region iac/init/index.d.ts
3
3
  declare const initProvider: {
4
4
  readonly label: "Firebase";
@@ -86,6 +86,6 @@ declare const mergeIndexes: (originalIndexes: {
86
86
  };
87
87
  /** Points the template's `firebase.json` at the database init sets up. */
88
88
  declare const setFirestoreDatabase: (cwd: string, databaseId: string) => Promise<void>;
89
- declare const runInit: ({ build, envFile, secretsEnv }: RunInitOptions) => Promise<void>;
89
+ declare const runInit: ({ build, envFile, secretsEnv }: RunInitOptions) => Promise<RunInitResult>;
90
90
  //#endregion
91
91
  export { initProvider, mergeIndexes, runInit, setFirestoreDatabase };
@@ -7816,7 +7816,7 @@ const runInit = async ({ build, envFile, secretsEnv }) => {
7816
7816
  });
7817
7817
  await makeEnv(persistedInputs);
7818
7818
  await removeTmpDir();
7819
- return;
7819
+ return null;
7820
7820
  }
7821
7821
  const functionsCode = transformEnv(functionsIndexPath, {
7822
7822
  REGION: currentRegion,
@@ -7919,9 +7919,7 @@ const runInit = async ({ build, envFile, secretsEnv }) => {
7919
7919
  }
7920
7920
  await printTemplate(clientCredential, initializeVariable.projectId, currentRegion, server.clientPlugins, cliEnv);
7921
7921
  await removeTmpDir();
7922
- p.log.message(`Next step: ${link("https://hot-updater.dev/docs/managed/firebase#step-3-add-hotupdater-to-your-project")}`);
7923
- if (!applicationCredentials) p.log.message("Next step: Change GOOGLE_APPLICATION_CREDENTIALS=your-credentials.json in .env.hotupdater");
7924
- p.log.success("Done! 🎉");
7922
+ return { nextSteps: [link("https://hot-updater.dev/docs/managed/firebase#step-3-add-hotupdater-to-your-project"), ...applicationCredentials ? [] : ["Change GOOGLE_APPLICATION_CREDENTIALS=your-credentials.json in .env.hotupdater"]] };
7925
7923
  };
7926
7924
  //#endregion
7927
7925
  export { initProvider, mergeIndexes, runInit, setFirestoreDatabase };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hot-updater/firebase",
3
3
  "type": "module",
4
- "version": "1.2.0-rc.15",
4
+ "version": "1.2.0-rc.17",
5
5
  "description": "React Native OTA solution for self-hosted",
6
6
  "main": "dist/index.cjs",
7
7
  "types": "dist/index.d.cts",
@@ -38,10 +38,10 @@
38
38
  "dependencies": {
39
39
  "hono": "4.12.34",
40
40
  "google-auth-library": "10.7.0",
41
- "@hot-updater/cli-tools": "1.2.0-rc.15",
42
- "@hot-updater/protocol": "1.2.0-rc.15",
43
- "@hot-updater/plugin-core": "1.2.0-rc.15",
44
- "@hot-updater/server": "1.2.0-rc.15"
41
+ "@hot-updater/protocol": "1.2.0-rc.17",
42
+ "@hot-updater/cli-tools": "1.2.0-rc.17",
43
+ "@hot-updater/plugin-core": "1.2.0-rc.17",
44
+ "@hot-updater/server": "1.2.0-rc.17"
45
45
  },
46
46
  "publishConfig": {
47
47
  "access": "public"
@@ -56,8 +56,8 @@
56
56
  "firebase-tools": "15.29.0",
57
57
  "fkill": "^9.0.0",
58
58
  "mime": "^4.0.4",
59
- "@hot-updater/mock": "1.2.0-rc.15",
60
- "@hot-updater/test-utils": "1.2.0-rc.15"
59
+ "@hot-updater/mock": "1.2.0-rc.17",
60
+ "@hot-updater/test-utils": "1.2.0-rc.17"
61
61
  },
62
62
  "peerDependencies": {
63
63
  "firebase-admin": ">=11.10.0",