@@ -61,7 +61,7 @@ import { TasksEmulator } from "./tasksEmulator";
61
61
import { AppHostingEmulator } from "./apphosting" ;
62
62
import { sendVSCodeMessage , VSCODE_MESSAGE } from "../dataconnect/webhook" ;
63
63
import { dataConnectLocalConnString } from "../api" ;
64
- import { EndpointFilter , getEndpointFilters } from "../deploy/functions/functionsDeployHelper" ;
64
+ import { getEndpointFilters } from "../deploy/functions/functionsDeployHelper" ;
65
65
import { ValidatedConfig } from "../functions/projectConfig" ;
66
66
67
67
const START_LOGGING_EMULATOR = utils . envOverride (
@@ -81,7 +81,7 @@ export async function exportOnExit(options: Options): Promise<void> {
81
81
try {
82
82
utils . logBullet (
83
83
`Automatically exporting data using ${ FLAG_EXPORT_ON_EXIT_NAME } "${ exportOnExitDir } " ` +
84
- "please wait for the export to finish..." ,
84
+ "please wait for the export to finish..." ,
85
85
) ;
86
86
await exportEmulatorData ( exportOnExitDir , options , /* initiatedBy= */ "exit" ) ;
87
87
} catch ( e : unknown ) {
@@ -128,8 +128,7 @@ export function prepareFunctionsBackends(
128
128
const emulatableBackends : EmulatableBackend [ ] = [ ] ;
129
129
130
130
const filters = getEndpointFilters ( options , true /* strict */ ) ;
131
- const codebaseFilters = filters
132
- ?. map ( ( f ) => f . codebase )
131
+ const codebaseFilters = filters ?. map ( ( f ) => f . codebase ) ;
133
132
134
133
const filterFn = ( codebase : string ) : boolean => {
135
134
if ( ! codebaseFilters ) {
@@ -141,7 +140,11 @@ export function prepareFunctionsBackends(
141
140
for ( const cfg of functionsCfg ) {
142
141
const codebase = cfg . codebase ?? "default" ;
143
142
if ( ! filterFn ( codebase ) ) {
144
- functionsLogger . logLabeled ( "INFO" , "functions" , `Skipping codebase ${ codebase } due to --only filter` ) ;
143
+ functionsLogger . logLabeled (
144
+ "INFO" ,
145
+ "functions" ,
146
+ `Skipping codebase ${ codebase } due to --only filter` ,
147
+ ) ;
145
148
continue ;
146
149
}
147
150
const functionsDir = path . join ( projectDir , cfg . source ) ;
@@ -172,7 +175,6 @@ export function prepareFunctionsBackends(
172
175
return emulatableBackends ;
173
176
}
174
177
175
-
176
178
/**
177
179
* Filters a list of emulators to only those specified in the config
178
180
* @param options
@@ -425,9 +427,9 @@ export async function startAll(
425
427
"ERROR" ,
426
428
Emulators . EXTENSIONS ,
427
429
`Unable to look up project number for ${ options . project } .\n` +
428
- " If this is a real project, ensure that you are logged in and have access to it.\n" +
429
- " If this is a fake project, please use a project ID starting with 'demo-' to skip production calls.\n" +
430
- " Continuing with a fake project number - secrets and other features that require production access may behave unexpectedly." ,
430
+ " If this is a real project, ensure that you are logged in and have access to it.\n" +
431
+ " If this is a fake project, please use a project ID starting with 'demo-' to skip production calls.\n" +
432
+ " Continuing with a fake project number - secrets and other features that require production access may behave unexpectedly." ,
431
433
) ;
432
434
}
433
435
}
@@ -946,7 +948,7 @@ export async function startAll(
946
948
"WARN" ,
947
949
"dataconnect" ,
948
950
"'firebase.json#emulators.dataconnect.dataDir' is set and `--import` flag was passed. " +
949
- "This will overwrite any data saved from previous runs." ,
951
+ "This will overwrite any data saved from previous runs." ,
950
952
) ;
951
953
if (
952
954
! options . nonInteractive &&
@@ -1054,8 +1056,8 @@ export async function startAll(
1054
1056
"WARN" ,
1055
1057
"emulators" ,
1056
1058
"The Emulator UI is not starting, either because none of the running " +
1057
- "emulators have a UI component or the Emulator UI cannot " +
1058
- "determine the Project ID. Pass the --project flag to specify a project." ,
1059
+ "emulators have a UI component or the Emulator UI cannot " +
1060
+ "determine the Project ID. Pass the --project flag to specify a project." ,
1059
1061
) ;
1060
1062
}
1061
1063
0 commit comments