Skip to content

Commit 418acc8

Browse files
committed
Clean the Turbo + Angular manifest output
1 parent 59336d4 commit 418acc8

File tree

1 file changed

+4
-1
lines changed
  • packages/@apphosting/adapter-angular/src

1 file changed

+4
-1
lines changed

packages/@apphosting/adapter-angular/src/utils.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,10 @@ function extractManifestOutput(output: string): string {
175175
if (start === -1 || end === -1 || start > end) {
176176
throw new Error(`Failed to find valid JSON object from build output: ${output}`);
177177
}
178-
return stripAnsi(output.substring(start, end + 1));
178+
// Clean the raw json string by removing the "web:build:" prefixes for a Turbo build
179+
const prefixRegex = /\n?web:build:/g;
180+
const cleanedOutput = output.substring(start, end + 1).replace(prefixRegex, '');
181+
return stripAnsi(cleanedOutput);
179182
}
180183

181184
/**

0 commit comments

Comments
 (0)