Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: move dist option to SentryCliUploadSourceMapsOptions #1269

Merged
merged 1 commit into from Jul 5, 2022

Conversation

ikenfin
Copy link
Contributor

@ikenfin ikenfin commented Jul 4, 2022

Hello!

It seems that the dist is wrongly placed at main settings, while (according to this sourcecode) it need to be placed in source maps settings (passing dist option to new SentryCli(path, opts) doesnt do anything, while passing it to uploadSourceMaps works).

This PR moves dist from SentryCliOptions to SentryCliUploadSourceMapsOptions

@kamilogorek kamilogorek merged commit da916a0 into getsentry:master Jul 5, 2022
@kamilogorek
Copy link
Contributor

Uff, my bad. Thanks for the fix. Funny enough, we had it merged somewhat incorrectly in webpack plugin, so it works there just fine 👀

https://github.com/getsentry/sentry-webpack-plugin/blob/395f80bf530b37fae1ade9da6edff6b5f467d2d2/index.d.ts#L19

image

image

@ikenfin
Copy link
Contributor Author

ikenfin commented Jul 5, 2022

Yeah, it seems that in webpack plugin they passing the whole options object to uploadSourcemap method, while in vite plugin we keep settings splitted for sentry-cli submodules for sourcemaps, deploy and setCommits using sentry-cli types mostly:)

lforst added a commit to robertcepa/sentry-javascript-bundler-plugins that referenced this pull request Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants