Skip to content

Commit 1be06d3

Browse files
authored
Fix bug where migration of config-clone command to TS broke the command. (#4173)
While migrating the command to TS in #4025, we introduced a small bug that effectively broke the `functions:config:clone` command that did not pass the `--only` flag. Fixes #4112
1 parent 02941bd commit 1be06d3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
- Fixes an issue where ext:list was not printing out information about installed Extension instances.
2-
- Fixes issue where Functions Emulator crashed when parsing triggers if accessing functions config values.
1+
- Fixes an issue where ext:list was not printing out information about installed Extension instances (#4156)
2+
- Fixes issue where Functions Emulator crashed when parsing triggers if accessing functions config values (#4162).
33
- `firebase emulators:start --export-on-exit <dir>` now rejects overwriting the current directory or parents (#4127).
4+
- Fixes broken functions:config:clone command (#4173).

src/commands/functions-config-clone.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default new Command("functions:config:clone")
3939
throw new FirebaseError("Cannot use both --only and --except at the same time.");
4040
}
4141

42-
let only: string[] = [];
42+
let only: string[] | undefined;
4343
let except: string[] = [];
4444
if (options.only) {
4545
only = options.only.split(",");

0 commit comments

Comments
 (0)