Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update builder.ts - Fix typo #3567

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/schematics/deploy/builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default createBuilder(
throw new Error('Cannot deploy the application without a target');
}

const [defaultFirebaseProject, defulatFirebaseHostingSite] = getFirebaseProjectNameFromFs(
const [defaultFirebaseProject, defaultFirebaseHostingSite] = getFirebaseProjectNameFromFs(
context.workspaceRoot,
context.target.project
);
Expand All @@ -25,11 +25,11 @@ export default createBuilder(
throw new Error('The Firebase Project specified by your angular.json or .firebaserc is in conflict');
}

const firebaseHostingSite = options.firebaseHostingSite || defulatFirebaseHostingSite;
const firebaseHostingSite = options.firebaseHostingSite || defaultFirebaseHostingSite;
if (!firebaseHostingSite) {
throw new Error(`Cannot determine the Firebase Hosting Site from your angular.json or .firebaserc`);
}
if (firebaseHostingSite !== defulatFirebaseHostingSite) {
if (firebaseHostingSite !== defaultFirebaseHostingSite) {
throw new Error('The Firebase Hosting Site specified by your angular.json or .firebaserc is in conflict');
}

Expand Down