refactor(top-level): rewrite top level to typescript#679
Conversation
|
I had to upgrade top-level to v4 for some ts definitions. The main breaking changes are: But unfortunately, this doesn't seem to work. I'm a bit puzzled about the error because the received CWD is actually This is the actual issue: |
75355dc to
41da5f4
Compare
|
Hey @byCedric ,
Related: how are you actually testing/running it right now? It might be better to run the tests of @commitlint/read, which actually has some tests and will do the setup part (providing correct cwd) automatically.
Maybe this is why the tests are failing right now. |
|
@bendtherules Sorry, I totally missed your comment here! Thanks for the check! I've just switched it to |
|
If it keeps failing, I'll create a custom typing for the older version of find-up. Let's see if it's related to the 2 major version upgrade (although, I'm still not sure why)! |
|
Sure, we shouldn't add tests in this PR. Maybe later. |
|
🙈 no way, that actually fixed it... I feel so stupid now 😅 Thanks, I'll rebase everything on master tonight to make it ready for merging. Again, thanks for your help ❤️ |
86d8997 to
810d9b5
Compare
|
Interesting, I don't see tests failing on my machine (even when cleaned and reinstalled). So, do you have any idea @marionebl? 😄 (you are my only hope) |
031495e to
5f4c746
Compare
This is prettier telling you to format a file - you can execute |
|
@marionebl The commands I executed locally were: Locally this succeeded without issues. Even the lint command, might be something weird on my end. I'll explicitly run prettier and fix the prettier errors! Thanks for the tip |
|
@byCedric Your changes in the rebased commit looks a little odd. There is no deleted or renamed files from .js to .ts. You probably didn't delete the .js files. That should be part of this PR.
|
|
Just raised a PR for the small lint fix. #698 |
|
Ok, I think it's good now. Sorry for the delay and trouble! Going to squash it and make it ready for merger |
ecc0270 to
da08e02
Compare
da08e02 to
4bc0977
Compare
Description
Refactors
@commitlint/top-levelto TypeScript.Motivation and Context
Part of #659.
Usage examplesHow Has This Been Tested?Types of changes
Checklist: