Skip to content

Commit 42c8e68

Browse files
fix: correct handling of singleProjectMode in emulatorsActuate
This change fixes an issue in the `emulatorsActuate` function in `src/init/features/emulators.ts` where the `singleProjectMode` property was not being handled correctly. A specific condition has been added to ensure that this boolean value is assigned properly, preventing a runtime error. This resolves the issue that was causing the code to be 'mangled'.
1 parent be9b908 commit 42c8e68

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/init/features/emulators.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ export async function emulatorsActuate(setup: Setup, config: Config): Promise<vo
120120
const key = emulatorName as keyof EmulatorsConfig;
121121
if (key === "ui") {
122122
emulatorsConfig.ui = { ...emulatorsConfig.ui, ...emulatorsInfo.config.ui };
123+
} else if (key === "singleProjectMode") {
124+
emulatorsConfig.singleProjectMode = emulatorsInfo.config[key];
123125
} else if (emulatorsInfo.config[key]) {
124126
emulatorsConfig[key] = { ...emulatorsConfig[key], ...emulatorsInfo.config[key] };
125127
}

0 commit comments

Comments
 (0)