@@ -2,6 +2,7 @@ import { type Client, type Scope, startSpan } from "@sentry/core";
2
2
import {
3
3
type Asset ,
4
4
type Chunk ,
5
+ type MetaFramework ,
5
6
type Module ,
6
7
type OutputPayload ,
7
8
type ProviderUtilInputs ,
@@ -15,6 +16,10 @@ import { type ValidGitService } from "./normalizeOptions";
15
16
import { debug } from "./logging.ts" ;
16
17
import { safeFlushTelemetry } from "../sentry/telemetry.ts" ;
17
18
19
+ interface OtherOptions {
20
+ metaFramework : MetaFramework ;
21
+ }
22
+
18
23
interface SentryConfig {
19
24
sentryClient ?: Client ;
20
25
sentryScope ?: Scope ;
@@ -47,6 +52,7 @@ class Output {
47
52
name : string ;
48
53
version : string ;
49
54
} ;
55
+ metaFramework : MetaFramework ;
50
56
outputPath ?: string ;
51
57
builtAt ?: number ;
52
58
duration ?: number ;
@@ -66,7 +72,11 @@ class Output {
66
72
sentryClient ?: Client ;
67
73
sentryScope ?: Scope ;
68
74
69
- constructor ( userOptions : NormalizedOptions , sentryConfig ?: SentryConfig ) {
75
+ constructor (
76
+ userOptions : NormalizedOptions ,
77
+ otherOptions : OtherOptions ,
78
+ sentryConfig ?: SentryConfig ,
79
+ ) {
70
80
this . version = "3" ;
71
81
this . apiUrl = userOptions . apiUrl ;
72
82
this . dryRun = userOptions . dryRun ;
@@ -80,7 +90,7 @@ class Output {
80
90
this . telemetry = userOptions . telemetry ;
81
91
this . sentryClient = sentryConfig ?. sentryClient ;
82
92
this . sentryScope = sentryConfig ?. sentryScope ;
83
-
93
+ this . metaFramework = otherOptions . metaFramework ;
84
94
if ( userOptions . uploadOverrides ) {
85
95
this . branch = userOptions . uploadOverrides . branch ;
86
96
this . build = userOptions . uploadOverrides . build ;
0 commit comments