-
-
Notifications
You must be signed in to change notification settings - Fork 844
Bug Fix: store typescript_declarations config and rebuild if changed (Attempt 2) #4562
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
base: main
Are you sure you want to change the base?
Bug Fix: store typescript_declarations config and rebuild if changed (Attempt 2) #4562
Conversation
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.
Super nice, thank you! Couple small notes inline.
kind: FileKind::File, | ||
path: ts_indicator_path, | ||
err: Some(e.to_string()), | ||
})?; |
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.
self.io.write
already returns the right error type so can return it as-is without wrapping it in another layer.
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.
Done!
.paths | ||
.build_directory_for_target(self.mode(), self.target()); | ||
|
||
let ts_indicator_path = build_path.join("typescript-declarations.lock"); |
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.
This isn't a lock file so let's remove the .lock extension.
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.
Done!
@lpil Addressed both comments. Thank you! |
New branch for bugfix related to #4523
Had a merge commit in my history but I am too scared of messing up my branch with rebasing, because I have no experience with that action.
File changes are identical though
FYI @lpil