Skip to content

Commit 4b7b279

Browse files
authored
Export 'app' in v2 entrypoint (#1615)
* Export 'app' in v2 entrypoint. Fixes firebase/firebase-tools#7637. * Add changelog. * Add comment
1 parent 0c22c28 commit 4b7b279

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Diff for: CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Fix bug where v1 functions can't be emulated (#1615)

Diff for: src/v2/index.ts

+4
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,7 @@ export { params };
7777
// NOTE: Required to support the Functions Emulator which monkey patches `functions.config()`
7878
// TODO(danielylee): Remove in next major release.
7979
export { config } from "../v1/config";
80+
81+
// Required for v1 Emulator support.
82+
import { setApp as setEmulatedAdminApp } from "../common/app";
83+
export const app = { setEmulatedAdminApp };

0 commit comments

Comments
 (0)