Skip to content
Merged
Changes from 1 commit
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
5 changes: 4 additions & 1 deletion packages/@apphosting/adapter-angular/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,10 @@
if (start === -1 || end === -1 || start > end) {
throw new Error(`Failed to find valid JSON object from build output: ${output}`);
}
return stripAnsi(output.substring(start, end + 1));
// Clean the raw json string by removing the "web:build:" prefixes for a Turbo build
const prefixRegex = /\n?web:build:/g;
const cleanedOutput = output.substring(start, end + 1).replace(prefixRegex, '');

Check failure on line 180 in packages/@apphosting/adapter-angular/src/utils.ts

View workflow job for this annotation

GitHub Actions / Lint

Replace `''` with `""`
return stripAnsi(cleanedOutput);
}

/**
Expand Down
Loading