Skip to content

Commit 6b547a6

Browse files
committed
Add clarifying comment
1 parent d380137 commit 6b547a6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

dist/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122780,6 +122780,8 @@ const telemetry_1 = __nccwpck_require__(12417);
122780122780
if (urlPrefix) {
122781122781
sourceMapsOptions.urlPrefix = urlPrefix;
122782122782
}
122783+
// sentry-cli supports multiple projects, but only uploads sourcemaps for the
122784+
// first project so we need to upload sourcemaps for each project individually
122783122785
yield Promise.all(projects.map((project) => __awaiter(void 0, void 0, void 0, function* () {
122784122786
return (0, cli_1.getCLI)().uploadSourceMaps(release, Object.assign(Object.assign({}, sourceMapsOptions), { projects: [project] }));
122785122787
})));

src/main.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,14 @@ withTelemetry(
8989
sourceMapsOptions.urlPrefix = urlPrefix;
9090
}
9191

92+
// sentry-cli supports multiple projects, but only uploads sourcemaps for the
93+
// first project so we need to upload sourcemaps for each project individually
9294
await Promise.all(
9395
projects.map(async (project: string) =>
9496
getCLI().uploadSourceMaps(release, {
9597
...sourceMapsOptions,
9698
projects: [project],
97-
} as SentryCliUploadSourceMapsOptions & { projects: string[] })
99+
} as SentryCliUploadSourceMapsOptions & {projects: string[]})
98100
)
99101
);
100102

0 commit comments

Comments
 (0)