You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 20, 2023. It is now read-only.
feat(options): Allow include to be an object (#299)
This mirrors the change in getsentry/sentry-cli#1001, which allows for path-specific options to be passed as part of the `include` option value. Specifically, this:
- Fixes normalization of the `include` option to account for the new possibility of it being an object, and of the `ignore` option within that object
- Adds tests for the normalization
- Updates the README to reflect the new possibility
- Fixes a bug in the normalization function `toArray()` so that falsy (but defined) values aren't ignored. We don't actually ever use it in a way which would make this an issue, but it seemed silly to leave the bug in place when the fix was so simple.
| include |`string`/`array`| required | One or more paths that Sentry CLI should scan recursively for sources. It will upload all `.map` files and match associated `.js` files. |
63
+
| include |`string`/`array`/`object`| required | One or more paths that Sentry CLI should scan recursively for sources. It will upload all `.map` files and match associated `.js` files. Can be given as an object with path-specific options. See [table below](#include) for details.|
64
64
| org |`string`| optional | The slug of the Sentry organization associated with the app. |
65
65
| project |`string`| optional | The slug of the Sentry project associated with the app. |
66
66
| authToken |`string`| optional | The authentication token to use for all communication with Sentry. Can be obtained from https://sentry.io/settings/account/api/auth-tokens/. Required scopes: `project:releases` (and `org:read` if `setCommits` option is used). |
@@ -89,6 +89,21 @@ Also, check the [example](example) directory.
89
89
| setCommits |`Object`| optional | Adds commits to Sentry. See [table below](#setCommits) for details. |
90
90
| deploy |`Object`| optional | Creates a new release deployment in Sentry. See [table below](#deploy) for details. |
0 commit comments