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 compatibility check #1685

Merged
merged 2 commits into from
Aug 10, 2022
Merged

Conversation

BenoitZugmeyer
Copy link
Member

@BenoitZugmeyer BenoitZugmeyer commented Aug 10, 2022

Motivation

  • We previously removed node_modules without reinstalling, so the parent TS version was used instead of the test/app one. By installing test/app dependencies, we make sure the correct version of TS is installed. Note: compatibility errors were caught by our ssr compatibility check

  • A sed command worked on Mac but not on Linux, so we didn't test for exactOptionalPropertyTypes compatibility on CI

Changes

  • Install test/app dependencies before checking compatibility
  • Replace sed by perl

Testing

  • Local
  • Staging
  • Unit
  • End to end

I have gone over the contributing documentation.

We previously removed node_modules without reinstalling, so the parent
TS version was used instead of the test/app one. By installing test/app
dependencies, we make sure the correct version of TS is installed.
@BenoitZugmeyer BenoitZugmeyer requested a review from a team as a code owner August 10, 2022 09:27
* the sed command worked on Mac but not on Linux 😮
* adding `--dev` removes a yarn warning from the output
@BenoitZugmeyer BenoitZugmeyer changed the title 🐛 fix ts3 compatibility check 🐛 fix compatibility check Aug 10, 2022
Copy link
Contributor

@bcaudan bcaudan left a comment

Choose a reason for hiding this comment

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

LGTM

@BenoitZugmeyer BenoitZugmeyer merged commit 3e27c40 into main Aug 10, 2022
@BenoitZugmeyer BenoitZugmeyer deleted the benoit/fix-tsc-compatibility-check branch August 10, 2022 12:21
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.

2 participants