Skip to content

Commit 9e53978

Browse files
authored
Merge branch 'master' into if-fixSpawn
2 parents 2a9186a + 81d9c72 commit 9e53978

File tree

9 files changed

+37
-111
lines changed

9 files changed

+37
-111
lines changed

npm-shrinkwrap.json

+27-102
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@
129129
"google-auth-library": "^9.11.0",
130130
"inquirer": "^8.2.6",
131131
"inquirer-autocomplete-prompt": "^2.0.1",
132+
"js-yaml": "^3.14.1",
132133
"jsonwebtoken": "^9.0.0",
133134
"leven": "^3.1.0",
134135
"libsodium-wrappers": "^0.7.10",

schema/firebase-config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@
369369
"rootDirectory": {
370370
"type": "string"
371371
},
372-
"startCommandOverride": {
372+
"startCommand": {
373373
"type": "string"
374374
}
375375
},

src/dataconnect/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export function toDatasource(
184184
locationId: string,
185185
ds: DatasourceYaml,
186186
): Datasource {
187-
if (ds.postgresql) {
187+
if (ds?.postgresql) {
188188
return {
189189
postgresql: {
190190
database: ds.postgresql.database,

src/emulator/apphosting/developmentServer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export async function detectStartCommand(rootDir: string) {
3838
return `${packageManager} run dev`;
3939
} catch (e) {
4040
throw new FirebaseError(
41-
"Failed to auto-detect your project's start command. Consider manually setting the start command by setting `firebase.json#emulators.apphosting.startCommandOverride`",
41+
"Failed to auto-detect your project's start command. Consider manually setting the start command by setting `firebase.json#emulators.apphosting.startCommand`",
4242
);
4343
}
4444
}

src/emulator/apphosting/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ interface AppHostingEmulatorArgs {
55
options?: any;
66
port?: number;
77
host?: string;
8-
startCommandOverride?: string;
8+
startCommand?: string;
99
rootDirectory?: string;
1010
}
1111

@@ -19,7 +19,7 @@ export class AppHostingEmulator implements EmulatorInstance {
1919
async start(): Promise<void> {
2020
const { hostname, port } = await apphostingStart({
2121
port: this.args.port,
22-
startCommand: this.args.startCommandOverride,
22+
startCommand: this.args.startCommand,
2323
rootDirectory: this.args.rootDirectory,
2424
});
2525
this.args.options.host = hostname;

src/emulator/controller.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,7 @@ export async function startAll(
955955
const apphostingEmulator = new AppHostingEmulator({
956956
host: apphostingAddr.host,
957957
port: apphostingAddr.port,
958-
startCommandOverride: apphostingConfig?.startCommandOverride,
958+
startCommand: apphostingConfig?.startCommand,
959959
rootDirectory: apphostingConfig?.rootDirectory,
960960
options,
961961
});

src/emulator/initEmulators.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ export const AdditionalInitFns: AdditionalInitFnsType = {
3030
const backendRoot = join(cwd, backendRelativeDir);
3131
try {
3232
const startCommand = await detectStartCommand(backendRoot);
33-
additionalConfigs.set("startCommandOverride", startCommand);
33+
additionalConfigs.set("startCommand", startCommand);
3434
} catch (e) {
3535
logger.log(
3636
"WARN",
37-
"Failed to auto-detect your project's start command. Consider manually setting the start command by setting `firebase.json#emulators.apphosting.startCommandOverride`",
37+
"Failed to auto-detect your project's start command. Consider manually setting the start command by setting `firebase.json#emulators.apphosting.startCommand`",
3838
);
3939
}
4040

src/firebaseConfig.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ export type EmulatorsConfig = {
206206
apphosting?: {
207207
host?: string;
208208
port?: number;
209-
startCommandOverride?: string;
209+
startCommand?: string;
210210
rootDirectory?: string;
211211
};
212212
pubsub?: {

0 commit comments

Comments
 (0)