Skip to content

fix(build-system-tests): update tsconfig for create-vite@latest#5335

Merged
timngyn merged 1 commit into
mainfrom
fix-build-system-tests
Jun 24, 2024
Merged

fix(build-system-tests): update tsconfig for create-vite@latest#5335
timngyn merged 1 commit into
mainfrom
fix-build-system-tests

Conversation

@timngyn
Copy link
Copy Markdown
Contributor

@timngyn timngyn commented Jun 22, 2024

Description of changes

image

Issue #, if available

Description of how you validated changes

Checklist

  • Have read the Pull Request Guidelines
  • PR description included
  • yarn test passes and tests are updated/added
  • PR title and commit messages follow conventional commit syntax
  • If this change should result in a version bump, changeset added (This can be done after creating the PR.) This does not apply to changes made to docs, 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.

@timngyn timngyn requested a review from a team as a code owner June 22, 2024 03:32
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jun 22, 2024

⚠️ No Changeset found

Latest commit: b1d8c80

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Comment on lines +127 to +128
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
Copy link
Copy Markdown
Contributor Author

@timngyn timngyn Jun 22, 2024

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

Comment on lines -26 to -30
"references": [
{
"path": "./tsconfig.node.json"
}
]
Copy link
Copy Markdown
Contributor Author

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,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor

@esauerbo esauerbo left a comment

Choose a reason for hiding this comment

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

LGTM

@timngyn timngyn merged commit 84e164e into main Jun 24, 2024
@timngyn timngyn deleted the fix-build-system-tests branch June 24, 2024 21:06
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.

3 participants