Skip to content

Commit c70bc40

Browse files
fix: ignore cached project during firebase init (#9509)
1 parent 8c2e890 commit c70bc40

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/command.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,12 @@ export class Command {
370370
private async applyRC(options: Options) {
371371
const rc = loadRC(options);
372372
options.rc = rc;
373-
let activeProject = this.configstoreProject(options.projectRoot || process.cwd());
373+
374+
let activeProject: string | undefined;
375+
if (this.name !== "init") {
376+
activeProject = this.configstoreProject(options.projectRoot || process.cwd()) ?? undefined;
377+
}
378+
374379

375380
// Only fetch the Studio Workspace project if we're running in Firebase
376381
// Studio. If the user passes the project via --project, it should take

0 commit comments

Comments
 (0)