Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion packages/@apphosting/adapter-angular/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apphosting/adapter-angular",
"version": "17.2.16",
"version": "17.2.17",
"main": "dist/index.js",
"description": "Experimental addon to the Firebase CLI to add web framework support",
"repository": {
Expand Down
7 changes: 6 additions & 1 deletion packages/@apphosting/adapter-angular/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,12 @@ export function populateOutputBundleOptions(outputPaths: OutputPaths): OutputBun
export function parseOutputBundleOptions(buildOutput: string): OutputBundleOptions {
const strippedManifest = extractManifestOutput(buildOutput);
// TODO: add functional tests that test this flow
const parsedManifest = JSON.parse(strippedManifest.replace(/[\r\n]+/g, "")) as string;
let parsedManifest;
try {
parsedManifest = JSON.parse(strippedManifest.replace(/[\r\n]+/g, "")) as string;
} catch (error) {
throw new Error(`Failed to parse build output manifest: ${error}`);
}
const manifest = buildManifestSchema.parse(parsedManifest);
if (manifest["errors"].length > 0) {
// errors when extracting manifest
Expand Down
Loading