File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
packages/bundler-plugin-core/src Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -26,11 +26,7 @@ export function normalizeUserOptions(userOptions: UserOptions) {
26
26
create : userOptions . release ?. create ?? true ,
27
27
finalize : userOptions . release ?. finalize ?? true ,
28
28
vcsRemote : userOptions . release ?. vcsRemote ?? process . env [ "SENTRY_VSC_REMOTE" ] ?? "origin" ,
29
- setCommits : userOptions . release ?. setCommits ?? {
30
- auto : true ,
31
- isDefault : true ,
32
- repo : undefined , // Just to please type narrowing
33
- } ,
29
+ setCommits : userOptions . release ?. setCommits ,
34
30
} ,
35
31
bundleSizeOptimizations : userOptions . bundleSizeOptimizations ,
36
32
reactComponentAnnotation : userOptions . reactComponentAnnotation ,
@@ -44,6 +40,14 @@ export function normalizeUserOptions(userOptions: UserOptions) {
44
40
_experiments : userOptions . _experiments ?? { } ,
45
41
} ;
46
42
43
+ if ( options . release . setCommits === undefined ) {
44
+ options . release . setCommits = {
45
+ // @ts -expect-error This is fine
46
+ auto : true ,
47
+ isDefault : true ,
48
+ } ;
49
+ }
50
+
47
51
return options ;
48
52
}
49
53
You can’t perform that action at this time.
0 commit comments