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(nextjs): Use local copies for all sentry packages when testing on vercel #3812

Merged

Conversation

lobsterkatie
Copy link
Member

Previously, when testing a project on vercel against a particular branch of the SDK repo, only the @sentry/nextjs package was reflecting the branches changes (by dint of the fact that it was listed as a file dependency pointing to the built SDK). All other @sentry/* packages were still getting downloaded from npm.

This fixes the install script so that it will force all interdependencies between @sentry/* packages to be specified by absolute file paths. That way, only the branch versions of all packages will be used.

There are also some small logging improvements and some generalized cleanup.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 16, 2021

size-limit report

Path Size
@sentry/browser - CDN Bundle (gzipped) 21.46 KB (+0.01% 🔺)
@sentry/browser - Webpack 22.47 KB (0%)
@sentry/react - Webpack 22.5 KB (0%)
@sentry/browser + @sentry/tracing - CDN Bundle (gzipped) 28.96 KB (+0.01% 🔺)

Copy link
Contributor

@kamilogorek kamilogorek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reduced unnecessary complexity

@lobsterkatie lobsterkatie force-pushed the kmclb-nextjs-use-only-local-sentry-packages-on-vercel branch from 990bd22 to 930bf3e Compare July 16, 2021 22:23
@lobsterkatie
Copy link
Member Author

Reduced unnecessary complexity

Good suggestions, thanks!

@lobsterkatie lobsterkatie force-pushed the kmclb-nextjs-use-only-local-sentry-packages-on-vercel branch from 930bf3e to 0729817 Compare July 19, 2021 14:45
@lobsterkatie lobsterkatie merged commit d79b6a7 into master Jul 19, 2021
@lobsterkatie lobsterkatie deleted the kmclb-nextjs-use-only-local-sentry-packages-on-vercel branch July 19, 2021 15:00
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

3 participants