Currently, I am attempting to consolidate external libraries into a vendor bundle through webpack. Instead of manually listing dependencies, I would like to automate this process by scanning all TypeScript files in the directory and generating an array of package imports accordingly.
While searching for a solution, I came across a npm package that performs similar functionality, but it only supports .js files rather than TypeScript: https://www.npmjs.com/package/find-imports.
If anyone has advice or suggestions on how to achieve this for TypeScript files, I would greatly appreciate it.