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(kit): improve generated tsconfig.json defaults #23121

Merged
merged 1 commit into from Sep 11, 2023
Merged

Conversation

danielroe
Copy link
Member

πŸ”— Linked issue

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Based on https://github.com/vuejs/tsconfig/blob/main/tsconfig.json, this adds a couple of improvements to the generated tsconfig.json, along with a TODO for some slightly more significant changes that we can defer to next minor.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@stackblitz
Copy link

stackblitz bot commented Sep 11, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@@ -117,13 +117,19 @@ export async function writeTypes (nuxt: Nuxt) {
compilerOptions: {
forceConsistentCasingInFileNames: true,
jsx: 'preserve',
jsxImportSource: 'vue',
Copy link
Member

Choose a reason for hiding this comment

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

Don't we also need jsImportFactory?

Copy link
Member

@pi0 pi0 left a comment

Choose a reason for hiding this comment

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

Nice changes! (Haven't tried but hope it also updates nitro generated ts config to be consistent)

@danielroe danielroe merged commit f79f9b3 into main Sep 11, 2023
25 checks passed
@danielroe danielroe deleted the fix/better-tsconfig branch September 11, 2023 13:40
@github-actions github-actions bot mentioned this pull request Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants