I have a private typescript module that serves as a dependency for a larger project. This dependency is established by including the typescript repository as a submodule and then installing it using npm into a local sub-folder. The typescript module compiles into JavaScript in its dist folder, allowing the major project to utilize it seamlessly. However, there's an issue - the dist folder is not included in the typescript repository.
What would be the most efficient workflow for consuming this typescript module from a JavaScript-only major project? Currently, my best solution involves manually running the $ tsc
command before using the major project, which can be seen as cumbersome since it's not a transparent process. If there is a better approach out there, please share your insights. Thank you!