firebase-tools 13.7.0 → 13.7.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.
|
@@ -58,7 +58,6 @@ async function linkGitHubRepository(projectId, location) {
|
|
|
58
58
|
const oauthConn = await getOrCreateOauthConnection(projectId, location);
|
|
59
59
|
const existingConns = await listAppHostingConnections(projectId);
|
|
60
60
|
if (existingConns.length === 0) {
|
|
61
|
-
utils.logBullet("no connections exist");
|
|
62
61
|
existingConns.push(await createFullyInstalledConnection(projectId, location, generateConnectionId(), oauthConn));
|
|
63
62
|
}
|
|
64
63
|
let repoCloneUri;
|
|
@@ -309,11 +309,8 @@ async function startAll(options, showUI = true, runningTestScript = false) {
|
|
|
309
309
|
utils.assertIsStringOrUndefined(options.extDevDir);
|
|
310
310
|
for (const cfg of functionsCfg) {
|
|
311
311
|
const functionsDir = path.join(projectDir, cfg.source);
|
|
312
|
-
|
|
313
|
-
if (!runtime) {
|
|
314
|
-
runtime = (0, supported_1.latest)("nodejs");
|
|
315
|
-
}
|
|
316
|
-
if (!(0, supported_1.isRuntime)(runtime)) {
|
|
312
|
+
const runtime = ((_e = options.extDevRuntime) !== null && _e !== void 0 ? _e : cfg.runtime);
|
|
313
|
+
if (runtime && !(0, supported_1.isRuntime)(runtime)) {
|
|
317
314
|
throw new error_1.FirebaseError(`Cannot load functions from ${functionsDir} because it has invalid runtime ${runtime}`);
|
|
318
315
|
}
|
|
319
316
|
emulatableBackends.push({
|