@hot-updater/firebase 1.0.0-rc.2 → 1.0.0-rc.3
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/iac/index.cjs +6 -4
- package/dist/iac/index.mjs +6 -4
- package/package.json +1 -1
package/dist/iac/index.cjs
CHANGED
|
@@ -7971,7 +7971,7 @@ const prepareFirebaseTemplate = async (firebaseRootDir) => {
|
|
|
7971
7971
|
};
|
|
7972
7972
|
};
|
|
7973
7973
|
//#endregion
|
|
7974
|
-
//#region iac/
|
|
7974
|
+
//#region iac/configTemplate.ts
|
|
7975
7975
|
const getConfigScaffold = (build) => {
|
|
7976
7976
|
const storageConfig = {
|
|
7977
7977
|
imports: [{
|
|
@@ -7999,9 +7999,9 @@ const getConfigScaffold = (build) => {
|
|
|
7999
7999
|
strategy: "preserve-existing",
|
|
8000
8000
|
code: `
|
|
8001
8001
|
// https://firebase.google.com/docs/admin/setup?hl=en#initialize_the_sdk_in_non-google_environments
|
|
8002
|
-
//
|
|
8003
|
-
//
|
|
8004
|
-
//
|
|
8002
|
+
// Reuse working application-default credentials (ADC).
|
|
8003
|
+
// Only when a credential file is needed, set its private local path in .env.hotupdater:
|
|
8004
|
+
// GOOGLE_APPLICATION_CREDENTIALS=./firebase-adminsdk-credentials.json
|
|
8005
8005
|
const credential = applicationDefault();`.trim()
|
|
8006
8006
|
}];
|
|
8007
8007
|
const builder = new _hot_updater_cli_tools.ConfigBuilder().setBuildType(build).setStorage(storageConfig).setDatabase(databaseConfig).addImport({
|
|
@@ -8010,6 +8010,8 @@ const credential = applicationDefault();`.trim()
|
|
|
8010
8010
|
}).setIntermediateCode(helperStatements.map((statement) => statement.code.trim()).join("\n\n"));
|
|
8011
8011
|
return (0, _hot_updater_cli_tools.createHotUpdaterConfigScaffoldFromBuilder)(builder, { helperStatements });
|
|
8012
8012
|
};
|
|
8013
|
+
//#endregion
|
|
8014
|
+
//#region iac/select.ts
|
|
8013
8015
|
const setEnv = async ({ applicationCredentials, projectId, storageBucket, build, region }) => {
|
|
8014
8016
|
await (0, _hot_updater_cli_tools.makeEnv)({
|
|
8015
8017
|
[initProvider.inputs.applicationCredentials.envKey]: {
|
package/dist/iac/index.mjs
CHANGED
|
@@ -7964,7 +7964,7 @@ const prepareFirebaseTemplate = async (firebaseRootDir) => {
|
|
|
7964
7964
|
};
|
|
7965
7965
|
};
|
|
7966
7966
|
//#endregion
|
|
7967
|
-
//#region iac/
|
|
7967
|
+
//#region iac/configTemplate.ts
|
|
7968
7968
|
const getConfigScaffold = (build) => {
|
|
7969
7969
|
const storageConfig = {
|
|
7970
7970
|
imports: [{
|
|
@@ -7992,9 +7992,9 @@ const getConfigScaffold = (build) => {
|
|
|
7992
7992
|
strategy: "preserve-existing",
|
|
7993
7993
|
code: `
|
|
7994
7994
|
// https://firebase.google.com/docs/admin/setup?hl=en#initialize_the_sdk_in_non-google_environments
|
|
7995
|
-
//
|
|
7996
|
-
//
|
|
7997
|
-
//
|
|
7995
|
+
// Reuse working application-default credentials (ADC).
|
|
7996
|
+
// Only when a credential file is needed, set its private local path in .env.hotupdater:
|
|
7997
|
+
// GOOGLE_APPLICATION_CREDENTIALS=./firebase-adminsdk-credentials.json
|
|
7998
7998
|
const credential = applicationDefault();`.trim()
|
|
7999
7999
|
}];
|
|
8000
8000
|
const builder = new ConfigBuilder().setBuildType(build).setStorage(storageConfig).setDatabase(databaseConfig).addImport({
|
|
@@ -8003,6 +8003,8 @@ const credential = applicationDefault();`.trim()
|
|
|
8003
8003
|
}).setIntermediateCode(helperStatements.map((statement) => statement.code.trim()).join("\n\n"));
|
|
8004
8004
|
return createHotUpdaterConfigScaffoldFromBuilder(builder, { helperStatements });
|
|
8005
8005
|
};
|
|
8006
|
+
//#endregion
|
|
8007
|
+
//#region iac/select.ts
|
|
8006
8008
|
const setEnv = async ({ applicationCredentials, projectId, storageBucket, build, region }) => {
|
|
8007
8009
|
await makeEnv({
|
|
8008
8010
|
[initProvider.inputs.applicationCredentials.envKey]: {
|