-
Notifications
You must be signed in to change notification settings - Fork 75
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
Botonic: upgrade typescript to 5.5.3 #2874
Conversation
Test Results30 tests 30 ✅ 5m 9s ⏱️ Results for commit 11575f0. ♻️ This comment has been updated with latest results. |
@@ -1,7 +1,7 @@ | |||
{ | |||
"extends": "./tsconfig.base.json", | |||
"compilerOptions": { | |||
"module": "ES2022", | |||
"module": "Node16", |
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.
beware with this change. Here https://www.typescriptlang.org/tsconfig/#module is stated that this changes the moduleResolution. I think we have to be sure that the compiled code is the one we expect
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.
Yes you are right I had to change this to make the build but now it is failing some tests in core related to regexp. I have to check better how the build is made
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.
Looking good ATM, but I would like to have this tested and be sure we are not breaking the code we are compiling and distributing
Description
Upgrade typescript used in botonic to v5.5.3
Context
Remove a type in the Contentful plugin as it is not typed correctly and when inferring the type automatically with the new version of typescript, an error occurs.
Removes the use of as T (in several flow builder plugin files) after using a filter on an array as the new version of typescript correctly infers the type.