diff --git a/src/commands/bundle.ts b/src/commands/bundle.ts index b1e43962696..8ca985d7537 100644 --- a/src/commands/bundle.ts +++ b/src/commands/bundle.ts @@ -86,7 +86,7 @@ export default class Bundle extends Command { private async collectMetricsData(document: Document) { try { // We collect the metadata from the final output so it contains all the files - this.specFile = await load(new Specification(document.string()).text()); + this.specFile = new Specification(document.string()); } catch (e: any) { if (e instanceof Error) { this.log(`Skipping submitting anonymous metrics due to the following error: ${e.name}: ${e.message}`);