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: add missing include path ../../**/* in generate tsconfig.json #205

Merged
merged 2 commits into from
May 9, 2022

Conversation

didavid61202
Copy link
Contributor

πŸ”— Linked issue

fix #204

❓ 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)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

the generated tsconfig.json file in .nitro/types is missing "include path" of "../..//*", causing typescript unable to grab all global types defined in .nitro/types/nitro.d.ts. adding "../..//*" to tsConfig.include array in nitro\src\build.ts should fix this issue.

πŸ“ Checklist

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

…njs#204)

the generated tsconfig.json file in .nitro/types is missing "include path" of "../../**/*", causing typescript unable to grab all global types defined in .nitro/types/nitro.d.ts.  adding "../../**/*" to tsConfig.include array in nitro\src\build.ts should fix this issue.
src/build.ts Outdated Show resolved Hide resolved
…ude paths

update hard coded generated tsconfig's include path to use relative paths from buildDir to rootDir/srcDir
@pi0
Copy link
Member

pi0 commented May 9, 2022

Thanks!

@pi0 pi0 merged commit 8978404 into unjs:main May 9, 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.

type hints not working as designed, missing tsconfig include path
3 participants