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!: dep-check tsx and jsx #1661

Merged
merged 2 commits into from
Oct 28, 2024
Merged

fix!: dep-check tsx and jsx #1661

merged 2 commits into from
Oct 28, 2024

Conversation

SgtPooki
Copy link
Member

Adds configuration to dependency-check command to check for unused dependencies properly in jsx & tsx files.

Also adds tests

@SgtPooki SgtPooki requested a review from achingbrain October 28, 2024 15:25
Copy link
Member Author

@SgtPooki SgtPooki left a comment

Choose a reason for hiding this comment

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

self review

@@ -2,7 +2,8 @@
"extends": "./src/config/tsconfig.aegir.json",
"compilerOptions": {
"outDir": "dist",
"emitDeclarationOnly": true
"emitDeclarationOnly": true,
"jsx": "preserve"
Copy link
Member Author

Choose a reason for hiding this comment

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

aegir build fails without this with the new fixtures, but it shouldn't impact output of aegir since there are no src/**/*.jsx or src/**/*.tsx files

Copy link
Member

@achingbrain achingbrain left a comment

Choose a reason for hiding this comment

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

LGTM - just a small suggestion to improve the .tsx test.

Also: this should go out as a major since things that were not being depchecked before will start to become depchecked which may cause breakage.

@SgtPooki SgtPooki changed the title feat: dep-check tsx and jsx fix!: dep-check tsx and jsx Oct 28, 2024
@achingbrain achingbrain merged commit 326e281 into master Oct 28, 2024
20 checks passed
@achingbrain achingbrain deleted the feat/dep-check-jsx-and-tsx branch October 28, 2024 18:31
github-actions bot pushed a commit that referenced this pull request Oct 28, 2024
## [45.0.0](v44.1.4...v45.0.0) (2024-10-28)

### ⚠ BREAKING CHANGES

* `.tsx` and `.jsx` files are now checked for missing/unused dependencies

### Bug Fixes

* dep-check tsx and jsx ([#1661](#1661)) ([326e281](326e281))
Copy link

🎉 This PR is included in version 45.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants