Expose link functionality as API
enhancement
### Feature request
Link is a great tool. Been using it for some time now. It would be great to be able to use it not only as CLI tool, but as API.
For some more complex workflows, this could be very handy.
### Motivations
My current project has grown complex. TSC compile is taking too long. I will rework it to use rebuild for the transpiration and bundling - which is blazing fast. In parallel, TSC can do type checking. Esbuild can be very easily automated from code, like can the Typescript compiler. it would make sense to just call "link" as function, instead of having to call it as CLI process.
Just a small change to the library would be needed... to export the symlinkPackage function in addition to the CLI
### Alternatives
_No response_
### Additional context
_No response_
### Contributions
- [ ] I plan to open a pull request for this issue
- [X] I plan to make a financial contribution to this project
1 条评论