MCPcopy Create free account
hub / github.com/firebase/firebase-tools / requireConfig

Function requireConfig

src/requireConfig.ts:7–18  ·  view source on GitHub ↗
(options: Options)

Source from the content-addressed store, hash-verified

5 * Rejects if there is no config in `options`.
6 */
7export async function requireConfig(options: Options): Promise<void> {
8 return new Promise((resolve, reject) =>
9 options.config
10 ? resolve()
11 : reject(
12 options.configError ??
13 new FirebaseError(
14 "Not in a Firebase project directory (could not locate firebase.json)",
15 ),
16 ),
17 );
18}

Callers 3

serve.tsFile · 0.90
beforeEmulatorCommandFunction · 0.90

Calls 2

resolveFunction · 0.85
rejectFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…