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) {
2626 create : userOptions . release ?. create ?? true ,
2727 finalize : userOptions . release ?. finalize ?? true ,
2828 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 ,
3430 } ,
3531 bundleSizeOptimizations : userOptions . bundleSizeOptimizations ,
3632 reactComponentAnnotation : userOptions . reactComponentAnnotation ,
@@ -44,6 +40,14 @@ export function normalizeUserOptions(userOptions: UserOptions) {
4440 _experiments : userOptions . _experiments ?? { } ,
4541 } ;
4642
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+
4751 return options ;
4852}
4953
You can’t perform that action at this time.
0 commit comments