Skip to content

Commit 2e0abd0

Browse files
author
Luca Forstner
authored
docs: Add option tables to READMEs (#117)
1 parent 2df1ece commit 2e0abd0

File tree

5 files changed

+422
-90
lines changed

5 files changed

+422
-90
lines changed

packages/bundler-plugin-core/src/types.ts

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ export type Options = Omit<IncludeEntry, "paths"> & {
1212
/**
1313
* The slug of the Sentry organization associated with the app.
1414
*
15-
* This value can also be set via the `SENTRY_ORG` env variable.
15+
* This value can also be specified via the `SENTRY_ORG` environment variable.
1616
*/
1717
org?: string;
1818

1919
/**
2020
* The slug of the Sentry project associated with the app.
2121
*
22-
* This value can also be set via the `SENTRY_PROJECT` env variable.
22+
* This value can also be specified via the `SENTRY_PROJECT` environment variable.
2323
*/
2424
project?: string;
2525

@@ -28,17 +28,17 @@ export type Options = Omit<IncludeEntry, "paths"> & {
2828
* Can be obtained from https://sentry.io/settings/account/api/auth-tokens/.
2929
* Required scopes: project:releases (and org:read if setCommits option is used).
3030
*
31-
* This value can also be set via the `SENTRY_AUTH_TOKEN` env variable
31+
* This value can also be specified via the `SENTRY_AUTH_TOKEN` environment variable.
3232
*/
3333
authToken?: string;
3434

3535
/**
3636
* The base URL of your Sentry instance. Use this if you are using a self-hosted
3737
* or Sentry instance other than sentry.io.
3838
*
39-
* This value can also be set via the `SENTRY_URL` env variable.
39+
* This value can also be set via the `SENTRY_URL` environment variable.
4040
*
41-
* Defaults to https://sentry.io/, which is the correct value for SAAS customers.
41+
* Defaults to https://sentry.io/, which is the correct value for SaaS customers.
4242
*/
4343
url?: string;
4444

@@ -47,11 +47,11 @@ export type Options = Omit<IncludeEntry, "paths"> & {
4747
/**
4848
* Unique identifier for the release.
4949
*
50-
* This value can also be set via the `SENTRY_RELEASE` env variable.
50+
* This value can also be specified via the `SENTRY_RELEASE` environment variable.
5151
*
5252
* Defaults to the output of the sentry-cli releases propose-version command,
5353
* which automatically detects values for Cordova, Heroku, AWS CodeBuild, CircleCI,
54-
* Xcode, and Gradle, and otherwise uses HEAD's commit SHA. (For HEAD option,
54+
* Xcode, and Gradle, and otherwise uses the git `HEAD`'s commit SHA. (the latter
5555
* requires access to git CLI and for the root directory to be a valid repository).
5656
*/
5757
release?: string;
@@ -99,7 +99,7 @@ export type Options = Omit<IncludeEntry, "paths"> & {
9999
/**
100100
* Version control system remote name.
101101
*
102-
* This value can also be set via the `SENTRY_VSC_REMOTE` env variable.
102+
* This value can also be specified via the `SENTRY_VSC_REMOTE` environment variable.
103103
*
104104
* Defaults to 'origin'.
105105
*/
@@ -109,7 +109,7 @@ export type Options = Omit<IncludeEntry, "paths"> & {
109109
* A header added to every outgoing network request.
110110
* The format should be `header-key: header-value`.
111111
*
112-
* This value can also be set via the `CUSTOM_HEADER` env variable.
112+
* This value can also be specified via the `CUSTOM_HEADER` environment variable.
113113
*/
114114
customHeader?: string;
115115

@@ -178,7 +178,7 @@ export type Options = Omit<IncludeEntry, "paths"> & {
178178
* and high-level performance data. We will never collect your code or any details of the
179179
* projects in which you're using this plugin.
180180
*
181-
* Defaults to true
181+
* Defaults to `true`.
182182
*/
183183
telemetry?: boolean;
184184

@@ -196,7 +196,7 @@ export type Options = Omit<IncludeEntry, "paths"> & {
196196
* maps from `{org}@{project}` to the `release` value. This might be helpful for webpack
197197
* module federation or micro frontend setups.
198198
*
199-
* Defaults to `false`
199+
* Defaults to `false`.
200200
*/
201201
injectReleasesMap?: boolean;
202202
};
@@ -244,16 +244,16 @@ export type IncludeEntry = {
244244
urlSuffix?: string;
245245

246246
/**
247-
* When paired with the `rewrite`, this will remove a prefix from filename references inside of
247+
* When paired with the `rewrite` option, this will remove a prefix from filename references inside of
248248
* sourcemaps. For instance you can use this to remove a path that is build machine specific.
249249
* Note that this will NOT change the names of uploaded files.
250250
*/
251251
stripPrefix?: string[];
252252

253253
/**
254-
* When paired with rewrite, this will add `~` to the stripPrefix array.
254+
* When paired with the `rewrite` option, this will add `~` to the `stripPrefix` array.
255255
*
256-
* Defaults to false.
256+
* Defaults to `false`.
257257
*/
258258
stripCommonPrefix?: boolean;
259259

@@ -296,8 +296,8 @@ type SetCommitsOptions = (AutoSetCommitsOptions | ManualSetCommitsOptions) & {
296296

297297
/**
298298
* If the flag is to `true` and the previous release commit was not found
299-
* in the repository, we create a release with the default commits count
300-
* instead of failing the command.
299+
* in the repository, the plugin creates a release with the default commits
300+
* count instead of failing the command.
301301
*
302302
* Defaults to `false`.
303303
*/
@@ -333,14 +333,14 @@ type ManualSetCommitsOptions = {
333333
/**
334334
* The full repo name as defined in Sentry.
335335
*
336-
* Required if `auto` option is not set to `true`.
336+
* Required if the `auto` option is not set to `true`.
337337
*/
338338
repo: string;
339339

340340
/**
341341
* The current (last) commit in the release.
342342
*
343-
* Required if `auto` option is not set to `true`.
343+
* Required if the `auto` option is not set to `true`.
344344
*/
345345
commit: string;
346346
};

0 commit comments

Comments
 (0)