Skip to content

Commit 62c316c

Browse files
author
Luca Forstner
committed
.
1 parent 988b7bc commit 62c316c

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

packages/bundler-plugin-core/src/options-mapping.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)