Closed bjornstar closed 8 hours ago
I am sorry @bjornstar , I am not going to approve the PR.
Over time, I went back and forward having the compiled output in a different target directory versus having the Typescript within the same directory l. The second option is what I believe the most conventional solution, and gave me fewer problems.
A separate folder for TypeScript, resulted in:
Last, but not least, I prefer to avoid to align all my projects to a different pattern without a very good reason
I am sorry @bjornstar , I am not going to approve the PR.
I have went back and forward having the compiled output in a different target directory. Having the typescript within the same directory is what I believe the most conventional solution, and gave me fewer problems.
A desperate folder for TypeScript, result in:
- Problems if Type definitions being in the wrong folder, those are part of the distribution
- I had issues with IDE understanding the different folders, resulting in compiled files locally and in the target folder, source mappings file issue
Last, but not least, I prefer to avoid to align all my projects to a different pattern without a very good reason
No worries, it was mostly idle curiosity to see if you were interested in doing it.
I find it difficult to work with .d.ts and .js files side by side with the .ts files. It also gets messy to have to maintain ignore lists and clean up all the files when linting.
If we build to a
dist
directory, we can avoid a quite a bit of work. The compiled.js
&.d.ts
files are all ignored by default and to do a clean build we just blow away the directory.I also switched to using
tsx
instead ofts-node
as I couldn't figure out the right incantations to get it to runmocha
anddoc-gen/gen
I wasn't sure if you wanted
doc-gen
in the build so I left it alone.If you're happy with the style of the project as it is feel free to close!