Skip to content

Commit 515d524

Browse files
committed
Fix angular
1 parent 9fd2af8 commit 515d524

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/frameworks/angular/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const build = async (config: DeployConfig | Required<DeployConfig>, getPr
1313

1414
// TODO log to firebase-tools
1515
const logger = new logging.Logger('firebase-tools');
16-
logger.subscribe(it => console.log(it));
16+
logger.subscribe(it => console.log(it.message));
1717

1818
const host = workspaces.createWorkspaceHost(new NodeJsAsyncHost());
1919
const { workspace } = await workspaces.readWorkspace(getProjectPath(), host);
@@ -30,7 +30,6 @@ export const build = async (config: DeployConfig | Required<DeployConfig>, getPr
3030
project = angularJson.defaultProject;
3131
if (!project) throw `angular.json missing defaultProject`;
3232
}
33-
3433
// TODO if there are multiple projects warn
3534
const workspaceProject = workspace.projects.get(project);
3635
if (!workspaceProject) throw `No project ${project} found.`;
@@ -67,7 +66,7 @@ export const build = async (config: DeployConfig | Required<DeployConfig>, getPr
6766
// TODO test and warn if production doesn't exist, fallback to default
6867
const configuration = 'production';
6968
if (workspaceProject.targets.has('build'))
70-
browserTarget = { project, target: 'built', configuration };
69+
browserTarget = { project, target: 'build', configuration };
7170
if (workspaceProject.targets.has('server'))
7271
serverTarget = { project, target: 'server', configuration };
7372
}

0 commit comments

Comments
 (0)