Appologies for the huge photos, I dont know how to make them smaller.
I guess I'll dive straight in to my issue. I have the following folder structure:
I am trying to create a repo of custom cypress commands. I have run into 2 issues.
Firstly if I rename the commands.ts to index.ts I get a bunch of weird typing issues(even if Chainable is returning void).
this is the index.d.ts(Chainable here but same issue with returning void):

If I rename the index.ts to commands.ts again and try to build it I get the following issue:
So quite a few issues here. Id appreciate if someone can guide me through this process.