-
Notifications
You must be signed in to change notification settings - Fork 290
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(build-system-tests): update tsconfig for create-vite@latest #5335
Conversation
|
echo "cp templates/components/react/vite/template-tsconfig-vite-${BUILD_TOOL_VERSION}.json mega-apps/${MEGA_APP_NAME}/tsconfig.app.json" | ||
cp templates/components/react/vite/template-tsconfig-vite-${BUILD_TOOL_VERSION}.json mega-apps/${MEGA_APP_NAME}/tsconfig.app.json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on this commit: https://github.com/vitejs/vite/pull/15913/files#diff-4aee86d836cbe0aac0d45ef61a8ca540455ef2a7ee667abb3dc1fdac0956b6a5, it looks like we want to overwrite the tsconfig.app.json
now.
tsconfig.json
should only have references to tsconfig.app.json
and tsconfig.node.json
"references": [ | ||
{ | ||
"path": "./tsconfig.node.json" | ||
} | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the reference to tsconfig.node.json
since that is now automatically being referenced in tsconfig.json
@@ -1,12 +1,9 @@ | |||
{ | |||
"compilerOptions": { | |||
"composite": true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add composite
based on this commit: https://github.com/vitejs/vite/pull/15913/files#diff-4aee86d836cbe0aac0d45ef61a8ca540455ef2a7ee667abb3dc1fdac0956b6a5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description of changes
template-tsconfig-vite-latest.json
based on this PR: feat(create-vite): use "solution" tsconfig so that vite.config.ts is type checked vitejs/vite#15913:tsconfig.node.json
"composite": true
Issue #, if available
Description of how you validated changes
Checklist
yarn test
passes and tests are updated/addeddocs
,e2e
,examples
, or other private packages.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.