Skip to content

Commit 4376ec2

Browse files
authored
feat(js): Export live option type for releases.uploadSourceMaps (#2627)
While working on #2605, I missed that we also need to add the new `live` option to the manually created *public* type declaration of the `SentryCLI().releases.uploadSourceMaps` method. This patch now adds the `live` option to this method.
1 parent 48330ef commit 4376ec2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

js/index.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,10 @@ declare module '@sentry/cli' {
208208

209209
proposeVersion(): Promise<string>;
210210

211-
uploadSourceMaps(release: string, options: SentryCliUploadSourceMapsOptions): Promise<string>;
211+
uploadSourceMaps(
212+
release: string,
213+
options: SentryCliUploadSourceMapsOptions & { live?: boolean | 'rejectOnError' }
214+
): Promise<string>;
212215

213216
listDeploys(release: string): Promise<string>;
214217

js/releases/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ class Releases {
149149
* ext: ['js', 'map', 'jsbundle', 'bundle'], // override file extensions to scan for
150150
* projects: ['node'], // provide a list of projects
151151
* decompress: false // decompress gzip files before uploading
152+
* live: true // whether to inherit stdio to display `sentry-cli` output directly.
152153
* });
153154
*
154155
* @param {string} release Unique name of the release.

0 commit comments

Comments
 (0)