diff --git a/src/dataconnect/build.ts b/src/dataconnect/build.ts index 7f8b1f1aa0e..84bfe320a5f 100644 --- a/src/dataconnect/build.ts +++ b/src/dataconnect/build.ts @@ -1,11 +1,24 @@ import { DataConnectEmulator } from "../emulator/dataconnectEmulator"; import { Options } from "../options"; +import * as utils from "../utils"; import { FirebaseError } from "../error"; import { prettify } from "./graphqlError"; import { DeploymentMetadata } from "./types"; export async function build(options: Options, configDir: string): Promise { const buildResult = await DataConnectEmulator.build({ configDir }); + + if (options.interactive) { + utils.logLabeledBullet("TEST", "is interactive"); + } else { + utils.logLabeledBullet("TEST", "is not interactive"); + } + if (options.nonInteractive) { + utils.logLabeledBullet("TEST", "is nonInteractive"); + } else { + utils.logLabeledBullet("TEST", "is not nonInteractive"); + } + if (buildResult?.errors?.length) { throw new FirebaseError( `There are errors in your schema and connector files:\n${buildResult.errors.map(prettify).join("\n")}`,