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(nuxt): Create declaration files for Nuxt module #13909

Merged
merged 2 commits into from
Oct 8, 2024

Conversation

s1gr1d
Copy link
Member

@s1gr1d s1gr1d commented Oct 8, 2024

Nuxt module builder uses the closest tsconfig.json and this had "declaration": false. I added another tsconfig.json closer to the module to generate those declarations.

fixes #13899

@s1gr1d s1gr1d self-assigned this Oct 8, 2024
@s1gr1d s1gr1d requested a review from Lms24 October 8, 2024 12:29
Copy link
Contributor

github-actions bot commented Oct 8, 2024

size-limit report 📦

Path Size % Change Change
@sentry/browser 22.73 KB - -
@sentry/browser - with treeshaking flags 21.53 KB - -
@sentry/browser (incl. Tracing) 34.97 KB - -
@sentry/browser (incl. Tracing, Replay) 71.54 KB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 61.94 KB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 75.87 KB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 88.64 KB - -
@sentry/browser (incl. Tracing, Replay, Feedback, metrics) 90.5 KB - -
@sentry/browser (incl. metrics) 27 KB - -
@sentry/browser (incl. Feedback) 39.87 KB - -
@sentry/browser (incl. sendFeedback) 27.38 KB - -
@sentry/browser (incl. FeedbackAsync) 32.17 KB - -
@sentry/react 25.49 KB - -
@sentry/react (incl. Tracing) 37.94 KB - -
@sentry/vue 26.9 KB - -
@sentry/vue (incl. Tracing) 36.86 KB - -
@sentry/svelte 22.87 KB - -
CDN Bundle 24.05 KB - -
CDN Bundle (incl. Tracing) 36.76 KB - -
CDN Bundle (incl. Tracing, Replay) 71.29 KB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 76.6 KB - -
CDN Bundle - uncompressed 70.53 KB - -
CDN Bundle (incl. Tracing) - uncompressed 109.04 KB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 221.13 KB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 234.34 KB - -
@sentry/nextjs (client) 37.91 KB - -
@sentry/sveltekit (client) 35.56 KB - -
@sentry/node 124.5 KB +0.01% +1 B 🔺
@sentry/node - without tracing 93.64 KB - -
@sentry/aws-serverless 103.3 KB - -

View base workflow run

Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

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

Thanks for fixing!

@@ -0,0 +1,8 @@
{
"extends": "../tsconfig.json",
Copy link
Member

Choose a reason for hiding this comment

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

should this extend from ../tsconfig.types.json instead? No worries, if it works like this I'm also fine with it!

Copy link
Member Author

Choose a reason for hiding this comment

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

It just needs the declaration set to true, so I didn't extend from there.

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.

[Nuxt] No types for plugin to extend NuxAppInjections
2 participants