backend-manager 3.2.119 → 3.2.120
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/package.json +1 -1
- package/src/cli/cli.js +17 -0
- package/src/manager/index.js +0 -2
package/package.json
CHANGED
package/src/cli/cli.js
CHANGED
|
@@ -419,6 +419,23 @@ Main.prototype.setup = async function () {
|
|
|
419
419
|
return !!pass;
|
|
420
420
|
}, fix_runtimeConfig);
|
|
421
421
|
|
|
422
|
+
// await self.test('using proper env', async function () {
|
|
423
|
+
// let runtimeconfig = JSON.parse(jetpack.read(`${self.firebaseProjectPath}/functions/.runtimeconfig.json`) || '{}');
|
|
424
|
+
// let ogPaths = getObjectPaths(runtimeconfigTemplate).split('\n');
|
|
425
|
+
// let pass = true;
|
|
426
|
+
|
|
427
|
+
// for (var i = 0, l = ogPaths.length; i < l; i++) {
|
|
428
|
+
// let item = ogPaths[i];
|
|
429
|
+
// if (!item) {continue}
|
|
430
|
+
// pass = _.get(runtimeconfig, item, undefined);
|
|
431
|
+
// if (typeof pass === 'undefined') {
|
|
432
|
+
// break;
|
|
433
|
+
// }
|
|
434
|
+
// }
|
|
435
|
+
|
|
436
|
+
// return !!pass;
|
|
437
|
+
// }, fix_runtimeConfig);
|
|
438
|
+
|
|
422
439
|
await self.test('using proper backend-manager-config.json', async function () {
|
|
423
440
|
const bemConfig = JSON.parse(self.bemConfigJSON);
|
|
424
441
|
|
package/src/manager/index.js
CHANGED
|
@@ -991,8 +991,6 @@ function requireJSON5(p) {
|
|
|
991
991
|
|
|
992
992
|
function manuallyLoadRuntimeConfig(cwd) {
|
|
993
993
|
try {
|
|
994
|
-
console.log('=====+++', jetpack.list(cwd));
|
|
995
|
-
console.log('=====+++', require(path.resolve(cwd, '.runtimeconfig.json')));
|
|
996
994
|
return require(path.resolve(cwd, '.runtimeconfig.json'));
|
|
997
995
|
} catch (e) {
|
|
998
996
|
return {};
|