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

Update typescript setup #1542

Merged
merged 13 commits into from
Jun 17, 2024
Merged

Update typescript setup #1542

merged 13 commits into from
Jun 17, 2024

Conversation

sndrs
Copy link
Member

@sndrs sndrs commented Jun 13, 2024

What are you changing?

  • adds tsc commands to all apps/packages
  • removes Nx's tsconfig.spec.json files (ts-jest doesn't need them anyway)
  • fixes some issues that the more thorough checking discovered
  • swaps out "include": ["."] for "include": ["**/*"] (just for clarity, because it's TS's actual default)
  • bumps some deps to deal with conflicting types in their deps

Two fixes also need new releases:

Why?

The recent move to using esbuild in rollup (#1385) means that types are not checked as part of the build process.

Even when they were, files which were included in TS projects but were not included in builds (e.g. configs, stories etc) were never checked.

@sndrs sndrs requested review from a team as code owners June 13, 2024 16:31
@sndrs sndrs requested a review from a team June 13, 2024 16:31
@sndrs sndrs requested review from a team as code owners June 13, 2024 16:31
Copy link

changeset-bot bot commented Jun 13, 2024

🦋 Changeset detected

Latest commit: ed9b893

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

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

Copy link
Contributor

Tip

Once this PR is ready to go, add the run_chromatic label to run the Chromatic tests.

This saves us a lot of money by not running the tests before we need them.

@sndrs sndrs merged commit f4e3a3a into main Jun 17, 2024
19 checks passed
@sndrs sndrs deleted the sndrs/tsc branch June 17, 2024 08:47
sndrs added a commit that referenced this pull request Jun 17, 2024
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.

Make sure source files are type-checked
3 participants