Migrate to TS#278
Conversation
Remove build scripts and autogenerated output
|
This is amazing, thank you!! I will review asap, including the build scripts. In the past I've mostly copied the scripts from date-fns to minimize effort, but as long as it gets the job done... |
|
@brettwillis when I ran the tests I got the error for each test file: I see you said above two tests were failing locally for you, but I guess you fixed that in the two subsequent commits? Are all the tests running fine for you locally now and does it all look good? I'll just compare the TS build targets to what date-fns is doing still, and then I think we can release a beta and then publish. |
|
@marnusw no those two tests are still failing on my machine same as before. Is it something to do with the MacOS plaform? Also just wondering why you removed all the documentation comments? They're not unused because that is what TS uses to export to the |
|
@marnusw btw those same two tests also fail in the same way on v3.0.0, seems it is not new to the TS branch. |
Are they used though? The old build scripts used them to create the types, but now that it's rewritten in TS the I removed them because they cluttered the code files (especially format and other long ones) and weren't used to build the actual documentation which is in the README. I'm fine with putting it back if there is a reason/preference for it. Would you mind checking whether those tests fail on the latest |
Confirmed same tests fail on v2.0.1.
Correct the Now we can get that inline documentation for free. So I would recommend adding it back imho. |
|
That's good to know. I didn't realize that. I'll definitely add it back in, and then we can merge and release this. Thank you for the feedback. 👍🏻 |
|
Thanks again for the great work! |
|
Great! And thanks for your work. |

Thought I'd help you out while I had a moment. I depend on this projects so it's only right to contribute back 🙏🏼 . Took a few liberties in terms of the build scripts so I'm not sure how you'll feel about it, but at least this could be a starting point. Significant reduction in code size.